|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.common.schema.model.impl.AbstractGroupPropertyDecorator
@Immutable public abstract class AbstractGroupPropertyDecorator
Abstract decorator for GroupPropertyDefinition
s
Field Summary | |
---|---|
protected GroupPropertyDefinition |
propertyGroup
The internal property definition |
Constructor Summary | |
---|---|
AbstractGroupPropertyDecorator(GroupPropertyDefinition propertyGroup)
Create a property group definition decorator |
Method Summary | ||
---|---|---|
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 |
|
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final GroupPropertyDefinition propertyGroup
Constructor Detail |
---|
public AbstractGroupPropertyDecorator(GroupPropertyDefinition propertyGroup)
propertyGroup
- the internal property group definitionMethod Detail |
---|
public 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 name
null
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()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |