|
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.AbstractPropertyDecorator
@Immutable public abstract class AbstractPropertyDecorator
Abstract decorator for PropertyDefinition
s
Field Summary | |
---|---|
protected PropertyDefinition |
property
The internal property definition |
Constructor Summary | |
---|---|
AbstractPropertyDecorator(PropertyDefinition property)
Create a property definition decorator |
Method Summary | ||
---|---|---|
GroupPropertyDefinition |
asGroup()
Return as a group definition is possible. |
|
PropertyDefinition |
asProperty()
Return as a property definition is possible. |
|
int |
compareTo(Definition<?> o)
|
|
|
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. |
|
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 definitions identifier |
|
URI |
getLocation()
Get the location |
|
QName |
getName()
Get the definition's qualified name |
|
TypeDefinition |
getParentType()
Get the parent type of the child. |
|
TypeDefinition |
getPropertyType()
Get the type associated with the property |
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final PropertyDefinition property
Constructor Detail |
---|
public AbstractPropertyDecorator(PropertyDefinition property)
property
- the internal property 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()
Definition
getIdentifier
in interface Definition<PropertyConstraint>
Definition.getIdentifier()
public String getDisplayName()
Definition
getDisplayName
in interface Definition<PropertyConstraint>
Definition.getDisplayName()
public QName getName()
Definition
getName
in interface Definition<PropertyConstraint>
Definition.getName()
public String getDescription()
Definition
getDescription
in interface Definition<PropertyConstraint>
null
Definition.getDescription()
public <T extends PropertyConstraint> T getConstraint(Class<T> constraintType)
Definition
getConstraint
in interface Definition<PropertyConstraint>
T
- the constraint typeconstraintType
- the constraint type, see Constraint
Definition.getConstraint(Class)
public DefinitionGroup getDeclaringGroup()
ChildDefinition
getDeclaringGroup
in interface ChildDefinition<PropertyConstraint>
ChildDefinition.getDeclaringGroup()
public TypeDefinition getParentType()
ChildDefinition
getParentType
in interface ChildDefinition<PropertyConstraint>
ChildDefinition.getParentType()
public TypeDefinition getPropertyType()
PropertyDefinition
getPropertyType
in interface PropertyDefinition
PropertyDefinition.getPropertyType()
public PropertyDefinition asProperty()
ChildDefinition
asProperty
in interface ChildDefinition<PropertyConstraint>
null
ChildDefinition.asProperty()
public GroupPropertyDefinition asGroup()
ChildDefinition
asGroup
in interface ChildDefinition<PropertyConstraint>
null
ChildDefinition.asGroup()
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 |