Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.schema.model.impl
Class DefaultGroup

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.impl.DefaultGroup
All Implemented Interfaces:
DefinitionGroup
Direct Known Subclasses:
XmlAttributeGroup, XmlGroup

public class DefaultGroup
extends Object
implements DefinitionGroup

Default DefinitionGroup implementation used internally in DefaultTypeDefinition and DefaultGroupPropertyDefinition. It has a random UUID as identifier.

Author:
Simon Templer

Constructor Summary
DefaultGroup(boolean flatten)
          Create a group
 
Method Summary
 void addChild(ChildDefinition<?> child)
          Add a declared child, this is called by the AbstractChildDefinition constructor.
 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
 String getIdentifier()
          Get the group identifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultGroup

public DefaultGroup(boolean flatten)
Create a group

Parameters:
flatten - if contained group properties may be replaced by their children if possible
Method Detail

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
Returns:
the definitions of the declared properties and groups
See Also:
DefinitionGroup.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
Parameters:
name - the child name
Returns:
the child definition or null if no child with the given name is available
See Also:
DefinitionGroup.getChild(QName)

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
Parameters:
child - the child definition
See Also:
DefinitionGroup.addChild(ChildDefinition)

getIdentifier

public String getIdentifier()
Description copied from interface: DefinitionGroup
Get the group identifier

Specified by:
getIdentifier in interface DefinitionGroup
Returns:
the unique name of the group
See Also:
DefinitionGroup.getIdentifier()

Humboldt Alignment Editor 2.5.0

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