Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.schema.model
Interface Definition<C>

Type Parameters:
C - the supported constraint type
All Superinterfaces:
Comparable<Definition<?>>, Locatable
All Known Subinterfaces:
ChildDefinition<C>, GroupPropertyDefinition, PropertyDefinition, TypeDefinition
All Known Implementing Classes:
AbstractChildDefinition, AbstractDefinition, AbstractGroupPropertyDecorator, AbstractPropertyDecorator, AnonymousXmlType, ConstraintOverrideGroupProperty, ConstraintOverrideProperty, DefaultGroupPropertyDefinition, DefaultPropertyDefinition, DefaultTypeDefinition, LazyGroupPropertyDefinition, LazyPropertyDefinition, RedeclareGroupProperty, RedeclareProperty, ReparentGroupProperty, ReparentProperty, SubstitutionGroupProperty, SubstitutionProperty, XmlAttribute, XmlAttributeGroupReferenceProperty, XmlAttributeReferenceProperty, XmlElement, XmlElementReferenceProperty, XmlGroupReferenceProperty, XmlTypeDefinition

public interface Definition<C>
extends Locatable, Comparable<Definition<?>>

Common interface for type and property definitions

Author:
Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Method Summary
<T extends C>
T
getConstraint(Class<T> constraintType)
          Get the constraint with the given constraint type.
Should usually not be called while creating the model, exceptions can be getting mutable constraints where this is intended.
 String getDescription()
          Get the definition description
 String getDisplayName()
          Get the definition's display name
 String getIdentifier()
          Get the definitions identifier
 QName getName()
          Get the definition's qualified name
 
Methods inherited from interface eu.esdihumboldt.hale.common.core.io.supplier.Locatable
getLocation
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getIdentifier

String getIdentifier()
Get the definitions identifier

Returns:
the unique name of the definition

getDisplayName

String getDisplayName()
Get the definition's display name

Returns:
the display name

getName

QName getName()
Get the definition's qualified name

Returns:
the qualified name

getDescription

String getDescription()
Get the definition description

Returns:
the description string or null

getConstraint

<T extends C> T getConstraint(Class<T> constraintType)
Get the constraint with the given constraint type.
Should usually not be called while creating the model, exceptions can be getting mutable constraints where this is intended.

Type Parameters:
T - the constraint type
Parameters:
constraintType - the constraint type, see Constraint
Returns:
the constraint with the given type

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d