Humboldt Alignment Editor 2.5.0

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

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
                  extended by eu.esdihumboldt.hale.io.xsd.reader.internal.SubstitutionGroupProperty
All Implemented Interfaces:
Locatable, ChildDefinition<GroupPropertyConstraint>, Definition<GroupPropertyConstraint>, DefinitionGroup, GroupPropertyDefinition, Comparable<Definition<?>>

public class SubstitutionGroupProperty
extends LazyGroupPropertyDefinition

Group property that resolves all possible substitutions for a property and offers them as a choice. The property must be set using setProperty(DefaultPropertyDefinition)-

Author:
Simon Templer

Field Summary
 
Fields inherited from class eu.esdihumboldt.hale.io.xsd.reader.internal.LazyGroupPropertyDefinition
index
 
Fields inherited from class eu.esdihumboldt.hale.common.schema.model.impl.AbstractDefinition
name
 
Constructor Summary
SubstitutionGroupProperty(QName name, DefinitionGroup parentGroup)
          The
 
Method Summary
 void addChild(ChildDefinition<?> child)
          Add a declared child, this is called by the AbstractChildDefinition constructor.
protected  void initChildren()
          Initialize the children.
 void setProperty(DefaultPropertyDefinition property)
          Set the property represented by the group.
 
Methods inherited from class eu.esdihumboldt.hale.io.xsd.reader.internal.LazyGroupPropertyDefinition
getChild, getDeclaredChildren
 
Methods inherited from class eu.esdihumboldt.hale.common.schema.model.impl.DefaultGroupPropertyDefinition
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
 

Constructor Detail

SubstitutionGroupProperty

public SubstitutionGroupProperty(QName name,
                                 DefinitionGroup parentGroup)
The

Parameters:
name - the property name
parentGroup - the parent group
Method Detail

setProperty

public void setProperty(DefaultPropertyDefinition property)
Set the property represented by the group. The property must have been created with this group as parent and the Cardinality constraint must have been already set.

Parameters:
property - the property to set

addChild

public void addChild(ChildDefinition<?> child)
Description copied from interface: DefinitionGroup
Add a declared child, this is called by the AbstractChildDefinition constructor.

Specified by:
addChild in interface DefinitionGroup
Overrides:
addChild in class DefaultGroupPropertyDefinition
Parameters:
child - the child definition
See Also:
DefaultGroupPropertyDefinition.addChild(ChildDefinition)

initChildren

protected void initChildren()
Description copied from class: LazyGroupPropertyDefinition
Initialize the children. DefaultGroupPropertyDefinition.addChild(ChildDefinition) can be used to add them.

Specified by:
initChildren in class LazyGroupPropertyDefinition
See Also:
LazyGroupPropertyDefinition.initChildren()

Humboldt Alignment Editor 2.5.0

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