eu.esdihumboldt.hale.io.xsd.reader.internal
Class LazyGroupPropertyDefinition
java.lang.Object
eu.esdihumboldt.hale.common.schema.model.impl.AbstractDefinition<C>
eu.esdihumboldt.hale.common.schema.model.impl.AbstractChildDefinition<GroupPropertyConstraint>
eu.esdihumboldt.hale.common.schema.model.impl.DefaultGroupPropertyDefinition
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 |
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 |
index
protected final XmlIndex index
- The XML index that can be used to resolve needed objects
LazyGroupPropertyDefinition
public LazyGroupPropertyDefinition(QName name,
DefinitionGroup parentGroup,
XmlIndex index,
boolean allowFlatten)
- Create a lazy group property definition
- Parameters:
name
- the group nameparentGroup
- the parent groupindex
- the XML indexallowFlatten
- if the group may be replaced by its children
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)
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d