Humboldt Alignment Editor 2.5.0

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

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
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
 
Fields inherited from class eu.esdihumboldt.hale.common.schema.model.impl.AbstractDefinition
name
 
Constructor Summary
LazyPropertyDefinition(QName name, DefinitionGroup declaringType, XmlIndex index)
          Create a lazy property definiton
 
Method Summary
 TypeDefinition getPropertyType()
          Get the type associated with the property
protected abstract  TypeDefinition resolvePropertyType(XmlIndex index)
          Resolve the property type using the XML index
 
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, getConstraint, 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
getConstraint, getDisplayName, getIdentifier, getName
 
Methods inherited from interface eu.esdihumboldt.hale.common.core.io.supplier.Locatable
getLocation
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

index

protected final XmlIndex index
The XML index that can be used to resolve needed objects

Constructor Detail

LazyPropertyDefinition

public LazyPropertyDefinition(QName name,
                              DefinitionGroup declaringType,
                              XmlIndex index)
Create a lazy property definiton

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

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

Humboldt Alignment Editor 2.5.0

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