@Immutable public abstract class AbstractPropertyDecorator extends Object implements PropertyDefinition
PropertyDefinition
sType | Property and Description |
---|---|
PropertyDefinition |
as
Return as a property definition is possible.
|
Modifier and Type | Field and Description |
---|---|
protected PropertyDefinition |
property
The internal property definition
|
Constructor and Description |
---|
AbstractPropertyDecorator(PropertyDefinition property)
Create a property definition decorator
|
Modifier and Type | Method and Description |
---|---|
GroupPropertyDefinition |
asGroup()
Return as a group definition is possible.
|
PropertyDefinition |
asProperty()
Return as a property definition is possible.
|
int |
compareTo(Definition<?> o) |
boolean |
equals(Object obj) |
<T extends PropertyConstraint> |
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
|
int |
hashCode() |
String |
toString() |
asProperty
in interface ChildDefinition<PropertyConstraint>
null
ChildDefinition.asProperty()
protected final PropertyDefinition property
public AbstractPropertyDecorator(PropertyDefinition property)
property
- the internal property 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()
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()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a