public class DefaultGroupPropertyDefinition extends AbstractChildDefinition<GroupPropertyConstraint> implements GroupPropertyDefinition
GroupPropertyDefinition
implementationType | Property and Description |
---|---|
PropertyDefinition |
as
Return as a property definition is possible.
|
name
Constructor and Description |
---|
DefaultGroupPropertyDefinition(QName name,
DefinitionGroup parentGroup,
boolean allowFlatten)
Create a new group property
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(ChildDefinition<?> child)
Add a declared child, this is called by the
AbstractChildDefinition constructor. |
boolean |
allowFlatten()
States if the group may be flattened, i.e.
|
GroupPropertyDefinition |
asGroup()
Return as a group definition is possible.
|
PropertyDefinition |
asProperty()
Return as a property definition is possible.
|
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 |
toString() |
getDeclaringGroup, getIdentifier, getParentType
compareTo, equals, getConstraint, getDescription, getDisplayName, getInheritedConstraint, getLocation, getName, hasConstraint, hashCode, setConstraint, setConstraintIfNotSet, setDescription, setLocation
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getIdentifier
getDeclaringGroup, getParentType
getConstraint, getDescription, getDisplayName, getIdentifier, getName
getLocation
compareTo
asProperty
in interface ChildDefinition<GroupPropertyConstraint>
null
ChildDefinition.asProperty()
public DefaultGroupPropertyDefinition(QName name, DefinitionGroup parentGroup, boolean allowFlatten)
name
- the group nameparentGroup
- the parent groupallowFlatten
- if the group may be replaced by its childrenGroupPropertyDefinition.allowFlatten()
public boolean allowFlatten()
GroupPropertyDefinition
allowFlatten
in interface GroupPropertyDefinition
GroupPropertyDefinition.allowFlatten()
public Collection<? extends ChildDefinition<?>> getDeclaredChildren()
DefinitionGroup
getDeclaredChildren
in interface DefinitionGroup
DefinitionGroup.getDeclaredChildren()
public ChildDefinition<?> getChild(QName name)
DefinitionGroup
getChild
in interface DefinitionGroup
name
- the child namenull
if no child with the
given name is availableDefinitionGroup.getChild(QName)
public void addChild(ChildDefinition<?> child)
DefinitionGroup
AbstractChildDefinition
constructor.addChild
in interface DefinitionGroup
child
- the child definitionDefinitionGroup.addChild(ChildDefinition)
public PropertyDefinition asProperty()
ChildDefinition
asProperty
in interface ChildDefinition<GroupPropertyConstraint>
null
ChildDefinition.asProperty()
public GroupPropertyDefinition asGroup()
ChildDefinition
asGroup
in interface ChildDefinition<GroupPropertyConstraint>
null
ChildDefinition.asGroup()
public String toString()
toString
in class AbstractDefinition<GroupPropertyConstraint>
AbstractDefinition.toString()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a