|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.treebind.DefaultPropertyImplementation
Default implementation of a TreeBind property. This abstract class contains the implementation of methods that are common to the two different types of TreeBind properties (ie complex and leaf properties).
Property
,
LeafProperty
,
ComplexProperty
Constructor Summary | |
DefaultPropertyImplementation()
|
Method Summary | |
void |
addProperty(int position,
Property property)
Add a sub property at a specific position (for ComplexProperty only. |
void |
addProperty(Property property)
Add a sub property (for ComplexProperty only. |
Name |
getNature()
Get the nature of the property. |
java.util.Iterator |
getProperties()
Get the subproperties of a property (for ComplexProperty only. |
java.util.Iterator |
getPropertiesWithNature(Name nature)
Get the subproperties of a property with a specific nature (for ComplexProperty only. |
java.util.Iterator |
getPropertiesWithRole(Name role)
Get the subproperties of a property with a specific role (for ComplexProperty only. |
java.util.Iterator |
getPropertiesWithRoleAndNature(Name role,
Name nature)
Get the subproperties of a property with a specific nature and a specific role (for ComplexProperty only. |
Name |
getRole()
Get the role of a property. |
java.lang.Object |
getValue()
Get the value of the property (for LeafProperty only). |
int |
nbProperties()
Get the number of sub properties (for ComplexProperty only. |
void |
setNature(Name nature)
Sets the nature of the property. |
void |
setRole(Name role)
Sets the role of a property. |
void |
setValue(java.lang.Object value)
Sets the value of a propety (for LeafProperty only). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultPropertyImplementation()
Method Detail |
public void addProperty(int position, Property property) throws NotImplementedException
Property
ComplexProperty
only.
addProperty
in interface Property
property
- the sub property
NotImplementedException
- when a property is added to a LeafProperty
public void addProperty(Property property) throws NotImplementedException
Property
ComplexProperty
only.
addProperty
in interface Property
property
- the sub property
NotImplementedException
- when a property is added to a LeafProperty
public Name getNature()
Property
getNature
in interface Property
public java.util.Iterator getProperties()
Property
ComplexProperty
only.
getProperties
in interface Property
public java.util.Iterator getPropertiesWithNature(Name nature)
Property
ComplexProperty
only.
getPropertiesWithNature
in interface Property
public java.util.Iterator getPropertiesWithRole(Name role)
Property
ComplexProperty
only.
getPropertiesWithRole
in interface Property
public java.util.Iterator getPropertiesWithRoleAndNature(Name role, Name nature)
Property
ComplexProperty
only.
getPropertiesWithRoleAndNature
in interface Property
public Name getRole()
Property
getRole
in interface Property
public java.lang.Object getValue()
Property
LeafProperty
only).
getValue
in interface Property
public int nbProperties()
Property
ComplexProperty
only.
nbProperties
in interface Property
public void setNature(Name nature)
Property
setNature
in interface Property
nature
- the naturepublic void setRole(Name role)
Property
setRole
in interface Property
role
- the rolepublic void setValue(java.lang.Object value) throws NotImplementedException
Property
LeafProperty
only).
setValue
in interface Property
value
- the value
NotImplementedException
- when a value is set on a ComplexProperty
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |