eu.esdihumboldt.hale.io.xsd.reader.internal
Class LazyPropertyDefinition
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
- All Implemented Interfaces:
- Locatable, ChildDefinition<PropertyConstraint>, Definition<PropertyConstraint>, PropertyDefinition, Comparable<Definition<?>>
- Direct Known Subclasses:
- XmlAttributeReferenceProperty, XmlElementReferenceProperty
public abstract class LazyPropertyDefinition
- extends DefaultPropertyDefinition
XML property definition that doesn't know its property type on construction
time.
- Author:
- Simon Templer
Field Summary |
protected XmlIndex |
index
The XML index that can be used to resolve needed objects |
Methods inherited from class eu.esdihumboldt.hale.common.schema.model.impl.AbstractDefinition |
compareTo, equals, getConstraint, getDisplayName, getInheritedConstraint, getLocation, getName, hasConstraint, hashCode, setConstraint, setConstraintIfNotSet, setDescription, setLocation |
index
protected final XmlIndex index
- The XML index that can be used to resolve needed objects
LazyPropertyDefinition
public LazyPropertyDefinition(QName name,
DefinitionGroup declaringType,
XmlIndex index)
- Create a lazy property definiton
- Parameters:
name
- the property namedeclaringType
- the declaring typeindex
- the XML index
getPropertyType
public TypeDefinition getPropertyType()
- Description copied from interface:
PropertyDefinition
- Get the type associated with the property
- Specified by:
getPropertyType
in interface PropertyDefinition
- Overrides:
getPropertyType
in class DefaultPropertyDefinition
- Returns:
- the property type
- See Also:
DefaultPropertyDefinition.getPropertyType()
resolvePropertyType
protected abstract TypeDefinition resolvePropertyType(XmlIndex index)
- Resolve the property type using the XML index
- Parameters:
index
- the XML index
- Returns:
- the resolved property type
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d