Humboldt Alignment Editor 2.5.0

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

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.impl.AbstractDefinition<C>
      extended by eu.esdihumboldt.hale.common.schema.model.impl.AbstractChildDefinition<GroupPropertyConstraint>
          extended by eu.esdihumboldt.hale.common.schema.model.impl.DefaultGroupPropertyDefinition
              extended by eu.esdihumboldt.hale.io.xsd.reader.internal.LazyGroupPropertyDefinition
All Implemented Interfaces:
Locatable, ChildDefinition<GroupPropertyConstraint>, Definition<GroupPropertyConstraint>, DefinitionGroup, GroupPropertyDefinition, Comparable<Definition<?>>
Direct Known Subclasses:
SubstitutionGroupProperty, XmlAttributeGroupReferenceProperty, XmlGroupReferenceProperty

public abstract class LazyGroupPropertyDefinition
extends DefaultGroupPropertyDefinition

Lazy property group definition

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
LazyGroupPropertyDefinition(QName name, DefinitionGroup parentGroup, XmlIndex index, boolean allowFlatten)
          Create a lazy group property definition
 
Method Summary
 ChildDefinition<?> getChild(QName name)
          Get the child with the given name
 Collection<? extends ChildDefinition<?>> getDeclaredChildren()
          Get the properties and property groups declared by the type
protected abstract  void initChildren()
          Initialize the children.
 
Methods inherited from class eu.esdihumboldt.hale.common.schema.model.impl.DefaultGroupPropertyDefinition
addChild, allowFlatten, asGroup, asProperty, 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, getDescription, 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.DefinitionGroup
getIdentifier
 
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, getDescription, 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

LazyGroupPropertyDefinition

public LazyGroupPropertyDefinition(QName name,
                                   DefinitionGroup parentGroup,
                                   XmlIndex index,
                                   boolean allowFlatten)
Create a lazy group property definition

Parameters:
name - the group name
parentGroup - the parent group
index - the XML index
allowFlatten - if the group may be replaced by its children
Method Detail

initChildren

protected abstract void initChildren()
Initialize the children. DefaultGroupPropertyDefinition.addChild(ChildDefinition) can be used to add them.


getDeclaredChildren

public Collection<? extends ChildDefinition<?>> getDeclaredChildren()
Description copied from interface: DefinitionGroup
Get the properties and property groups declared by the type

Specified by:
getDeclaredChildren in interface DefinitionGroup
Overrides:
getDeclaredChildren in class DefaultGroupPropertyDefinition
Returns:
the definitions of the declared properties and groups
See Also:
DefaultGroupPropertyDefinition.getDeclaredChildren()

getChild

public ChildDefinition<?> getChild(QName name)
Description copied from interface: DefinitionGroup
Get the child with the given name

Specified by:
getChild in interface DefinitionGroup
Overrides:
getChild in class DefaultGroupPropertyDefinition
Parameters:
name - the child name
Returns:
the child definition or null if no child with the given name is available
See Also:
DefaultGroupPropertyDefinition.getChild(QName)

Humboldt Alignment Editor 2.5.0

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