eu.esdihumboldt.hale.io.xsd.reader.internal
Class XmlAttributeReferenceProperty
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.LazyPropertyDefinition
eu.esdihumboldt.hale.io.xsd.reader.internal.XmlAttributeReferenceProperty
- All Implemented Interfaces:
- Locatable, ChildDefinition<PropertyConstraint>, Definition<PropertyConstraint>, PropertyDefinition, Comparable<Definition<?>>
public class XmlAttributeReferenceProperty
- extends LazyPropertyDefinition
Property referencing a XML attribute
- 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. |
protected TypeDefinition |
resolvePropertyType(XmlIndex index)
Resolve the property type using the XML index |
Methods inherited from class eu.esdihumboldt.hale.common.schema.model.impl.AbstractDefinition |
compareTo, equals, getDisplayName, getInheritedConstraint, getLocation, getName, hasConstraint, hashCode, setConstraint, setConstraintIfNotSet, setDescription, setLocation |
XmlAttributeReferenceProperty
public XmlAttributeReferenceProperty(QName name,
DefinitionGroup declaringType,
XmlIndex index,
QName attributeName)
- Create a property that references a XML attribute
- Parameters:
name
- the property namedeclaringType
- the declaring typeindex
- the XML indexattributeName
- the attribute name
resolvePropertyType
protected TypeDefinition resolvePropertyType(XmlIndex index)
- Description copied from class:
LazyPropertyDefinition
- Resolve the property type using the XML index
- Specified by:
resolvePropertyType
in class LazyPropertyDefinition
- Parameters:
index
- the XML index
- Returns:
- the resolved property type
- See Also:
LazyPropertyDefinition.resolvePropertyType(XmlIndex)
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