public class XmlAttributeReferenceProperty extends LazyPropertyDefinition
asProperty
index
name
Constructor and Description |
---|
XmlAttributeReferenceProperty(QName name,
DefinitionGroup declaringType,
XmlIndex index,
QName attributeName)
Create a property that references a XML attribute
|
Modifier and Type | Method and Description |
---|---|
<T extends PropertyConstraint> |
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
|
getPropertyType
asGroup, asProperty, getDescription, toString
getDeclaringGroup, getIdentifier, getParentType
compareTo, equals, getDisplayName, getInheritedConstraint, getLocation, getName, hasConstraint, hashCode, setConstraint, setConstraintIfNotSet, setDescription, setLocation
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDeclaringGroup, getParentType
getDisplayName, getIdentifier, getName
getLocation
compareTo
public XmlAttributeReferenceProperty(QName name, DefinitionGroup declaringType, XmlIndex index, QName attributeName)
name
- the property namedeclaringType
- the declaring typeindex
- the XML indexattributeName
- the attribute nameprotected TypeDefinition resolvePropertyType(XmlIndex index)
LazyPropertyDefinition
resolvePropertyType
in class LazyPropertyDefinition
index
- the XML indexLazyPropertyDefinition.resolvePropertyType(XmlIndex)
public <T extends PropertyConstraint> T getConstraint(Class<T> constraintType)
Definition
getConstraint
in interface Definition<PropertyConstraint>
getConstraint
in class AbstractDefinition<PropertyConstraint>
T
- the constraint typeconstraintType
- the constraint type, see Constraint
AbstractDefinition.getConstraint(Class)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a