public class DefaultPropertyDefinition extends AbstractChildDefinition<PropertyConstraint> implements PropertyDefinition
PropertyDefinition
implementationType | Property and Description |
---|---|
PropertyDefinition |
as
Return as a property definition is possible.
|
name
Constructor and Description |
---|
DefaultPropertyDefinition(QName name,
DefinitionGroup parentGroup,
TypeDefinition propertyType)
Create a new property and add it to the parent group
|
Modifier and Type | Method and Description |
---|---|
GroupPropertyDefinition |
asGroup()
Return as a group definition is possible.
|
PropertyDefinition |
asProperty()
Return as a property definition is possible.
|
String |
getDescription()
Get the definition description
|
TypeDefinition |
getPropertyType()
Get the type associated with the property
|
String |
toString() |
getDeclaringGroup, getIdentifier, getParentType
compareTo, equals, getConstraint, getDisplayName, getInheritedConstraint, getLocation, getName, hasConstraint, hashCode, setConstraint, setConstraintIfNotSet, setDescription, setLocation
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDeclaringGroup, getParentType
getConstraint, getDisplayName, getIdentifier, getName
getLocation
compareTo
asProperty
in interface ChildDefinition<PropertyConstraint>
null
ChildDefinition.asProperty()
public DefaultPropertyDefinition(QName name, DefinitionGroup parentGroup, TypeDefinition propertyType)
name
- the property qualified nameparentGroup
- the parent grouppropertyType
- the property typepublic TypeDefinition getPropertyType()
PropertyDefinition
getPropertyType
in interface PropertyDefinition
PropertyDefinition.getPropertyType()
public String getDescription()
Definition
getDescription
in interface Definition<PropertyConstraint>
getDescription
in class AbstractDefinition<PropertyConstraint>
null
AbstractDefinition.getDescription()
public String toString()
toString
in class AbstractDefinition<PropertyConstraint>
AbstractDefinition.toString()
public PropertyDefinition asProperty()
ChildDefinition
asProperty
in interface ChildDefinition<PropertyConstraint>
null
ChildDefinition.asProperty()
public GroupPropertyDefinition asGroup()
ChildDefinition
asGroup
in interface ChildDefinition<PropertyConstraint>
null
ChildDefinition.asGroup()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a