eu.esdihumboldt.hale.io.xsd.reader.internal
Class SubstitutionProperty
java.lang.Object
eu.esdihumboldt.hale.common.schema.model.impl.AbstractDefinition<C>
eu.esdihumboldt.hale.common.schema.model.impl.AbstractChildDefinition<PropertyConstraint>
eu.esdihumboldt.hale.common.schema.model.impl.DefaultPropertyDefinition
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
Method Summary |
|
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.AbstractDefinition |
compareTo, equals, getDisplayName, getInheritedConstraint, getLocation, getName, hasConstraint, hashCode, setConstraint, setConstraintIfNotSet, setDescription, setLocation |
SubstitutionProperty
public SubstitutionProperty(XmlElement substitution,
DefaultPropertyDefinition originialProperty,
SubstitutionGroupProperty substitutionGroup)
- Constructor
- Parameters:
substitution
- the element that represents the substitutionoriginialProperty
- the original property that is substitutedsubstitutionGroup
- the parent group
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)
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d