Humboldt Alignment Editor 2.5.0

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

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.LazyPropertyDefinition
                  extended by 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

Field Summary
 
Fields inherited from class eu.esdihumboldt.hale.io.xsd.reader.internal.LazyPropertyDefinition
index
 
Fields inherited from class eu.esdihumboldt.hale.common.schema.model.impl.AbstractDefinition
name
 
Constructor Summary
XmlAttributeReferenceProperty(QName name, DefinitionGroup declaringType, XmlIndex index, QName attributeName)
          Create a property that references a XML attribute
 
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.
protected  TypeDefinition resolvePropertyType(XmlIndex index)
          Resolve the property type using the XML index
 
Methods inherited from class eu.esdihumboldt.hale.io.xsd.reader.internal.LazyPropertyDefinition
getPropertyType
 
Methods inherited from class eu.esdihumboldt.hale.common.schema.model.impl.DefaultPropertyDefinition
asGroup, asProperty, getDescription, 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

XmlAttributeReferenceProperty

public XmlAttributeReferenceProperty(QName name,
                                     DefinitionGroup declaringType,
                                     XmlIndex index,
                                     QName attributeName)
Create a property that references a XML attribute

Parameters:
name - the property name
declaringType - the declaring type
index - the XML index
attributeName - the attribute name
Method Detail

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)

Humboldt Alignment Editor 2.5.0

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