@Immutable public abstract class AbstractGroupPropertyDecorator extends Object implements GroupPropertyDefinition
GroupPropertyDefinition
sType | Property and Description |
---|---|
PropertyDefinition |
as
Return as a property definition is possible.
|
Modifier and Type | Field and Description |
---|---|
protected GroupPropertyDefinition |
propertyGroup
The internal property definition
|
Constructor and Description |
---|
AbstractGroupPropertyDecorator(GroupPropertyDefinition propertyGroup)
Create a property group definition decorator
|
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.
|
int |
compareTo(Definition<?> o) |
ChildDefinition<?> |
getChild(QName name)
Get the child with the given name
|
<T extends GroupPropertyConstraint> |
getConstraint(Class<T> constraintType)
Get the constraint with the given constraint type.
Should usually not be called while creating the model, exceptions can be getting mutable constraints where this is intended. |
Collection<? extends ChildDefinition<?>> |
getDeclaredChildren()
Get the properties and property groups declared by the type
|
DefinitionGroup |
getDeclaringGroup()
Get the definition of the group declaring the property.
|
String |
getDescription()
Get the definition description
|
String |
getDisplayName()
Get the definition's display name
|
String |
getIdentifier()
Get the group identifier
|
URI |
getLocation()
Get the location
|
QName |
getName()
Get the definition's qualified name
|
TypeDefinition |
getParentType()
Get the parent type of the child.
|
String |
toString() |
asProperty
in interface ChildDefinition<GroupPropertyConstraint>
null
ChildDefinition.asProperty()
protected final GroupPropertyDefinition propertyGroup
public AbstractGroupPropertyDecorator(GroupPropertyDefinition propertyGroup)
propertyGroup
- the internal property group definitionpublic int compareTo(Definition<?> o)
compareTo
in interface Comparable<Definition<?>>
Comparable.compareTo(Object)
public URI getLocation()
Locatable
getLocation
in interface Locatable
null
Locatable.getLocation()
public String getIdentifier()
DefinitionGroup
getIdentifier
in interface Definition<GroupPropertyConstraint>
getIdentifier
in interface DefinitionGroup
Definition.getIdentifier()
public String getDisplayName()
Definition
getDisplayName
in interface Definition<GroupPropertyConstraint>
Definition.getDisplayName()
public QName getName()
Definition
getName
in interface Definition<GroupPropertyConstraint>
Definition.getName()
public String getDescription()
Definition
getDescription
in interface Definition<GroupPropertyConstraint>
null
Definition.getDescription()
public DefinitionGroup getDeclaringGroup()
ChildDefinition
getDeclaringGroup
in interface ChildDefinition<GroupPropertyConstraint>
ChildDefinition.getDeclaringGroup()
public TypeDefinition getParentType()
ChildDefinition
getParentType
in interface ChildDefinition<GroupPropertyConstraint>
ChildDefinition.getParentType()
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 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 <T extends GroupPropertyConstraint> T getConstraint(Class<T> constraintType)
Definition
getConstraint
in interface Definition<GroupPropertyConstraint>
T
- the constraint typeconstraintType
- the constraint type, see Constraint
Definition.getConstraint(Class)
public boolean allowFlatten()
GroupPropertyDefinition
allowFlatten
in interface GroupPropertyDefinition
GroupPropertyDefinition.allowFlatten()
public String toString()
toString
in class Object
Object.toString()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a