Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.xsd.reader.internal
Class SubstitutionProperty

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.impl.AbstractDefinition<C>
      extended by eu.esdihumboldt.hale.common.schema.model.impl.AbstractChildDefinition<PropertyConstraint>
          extended by eu.esdihumboldt.hale.common.schema.model.impl.DefaultPropertyDefinition
              extended by eu.esdihumboldt.hale.io.xsd.reader.internal.SubstitutionProperty
All Implemented Interfaces:
Locatable, ChildDefinition<PropertyConstraint>, Definition<PropertyConstraint>, PropertyDefinition, Comparable<Definition<?>>

public class SubstitutionProperty
extends DefaultPropertyDefinition

Property that represents a substitution in an XML element substitution group.

Author:
Simon Templer

Field Summary
 
Fields inherited from class eu.esdihumboldt.hale.common.schema.model.impl.AbstractDefinition
name
 
Constructor Summary
SubstitutionProperty(XmlElement substitution, DefaultPropertyDefinition originialProperty, SubstitutionGroupProperty substitutionGroup)
          Constructor
 
Method Summary
<T extends PropertyConstraint>
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.
 
Methods inherited from class eu.esdihumboldt.hale.common.schema.model.impl.DefaultPropertyDefinition
asGroup, asProperty, getDescription, getPropertyType, toString
 
Methods inherited from class eu.esdihumboldt.hale.common.schema.model.impl.AbstractChildDefinition
getDeclaringGroup, getIdentifier, getParentType
 
Methods inherited from class eu.esdihumboldt.hale.common.schema.model.impl.AbstractDefinition
compareTo, equals, getDisplayName, getInheritedConstraint, getLocation, getName, hasConstraint, hashCode, setConstraint, setConstraintIfNotSet, setDescription, setLocation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface eu.esdihumboldt.hale.common.schema.model.ChildDefinition
getDeclaringGroup, getParentType
 
Methods inherited from interface eu.esdihumboldt.hale.common.schema.model.Definition
getDisplayName, getIdentifier, getName
 
Methods inherited from interface eu.esdihumboldt.hale.common.core.io.supplier.Locatable
getLocation
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

SubstitutionProperty

public SubstitutionProperty(XmlElement substitution,
                            DefaultPropertyDefinition originialProperty,
                            SubstitutionGroupProperty substitutionGroup)
Constructor

Parameters:
substitution - the element that represents the substitution
originialProperty - the original property that is substituted
substitutionGroup - the parent group
Method Detail

getConstraint

public <T extends PropertyConstraint> T getConstraint(Class<T> constraintType)
Description copied from interface: Definition
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.

Specified by:
getConstraint in interface Definition<PropertyConstraint>
Overrides:
getConstraint in class AbstractDefinition<PropertyConstraint>
Type Parameters:
T - the constraint type
Parameters:
constraintType - the constraint type, see Constraint
Returns:
the constraint with the given type
See Also:
AbstractDefinition.getConstraint(Class)

Humboldt Alignment Editor 2.5.0

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