|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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
PropertyComplexProperty only.
addProperty in interface Propertyproperty - the sub property
NotImplementedException - when a property is added to a LeafProperty
public void addProperty(Property property)
throws NotImplementedException
PropertyComplexProperty only.
addProperty in interface Propertyproperty - the sub property
NotImplementedException - when a property is added to a LeafPropertypublic Name getNature()
Property
getNature in interface Propertypublic java.util.Iterator getProperties()
PropertyComplexProperty only.
getProperties in interface Propertypublic java.util.Iterator getPropertiesWithNature(Name nature)
PropertyComplexProperty only.
getPropertiesWithNature in interface Propertypublic java.util.Iterator getPropertiesWithRole(Name role)
PropertyComplexProperty only.
getPropertiesWithRole in interface Property
public java.util.Iterator getPropertiesWithRoleAndNature(Name role,
Name nature)
PropertyComplexProperty only.
getPropertiesWithRoleAndNature in interface Propertypublic Name getRole()
Property
getRole in interface Propertypublic java.lang.Object getValue()
PropertyLeafProperty only).
getValue in interface Propertypublic int nbProperties()
PropertyComplexProperty only.
nbProperties in interface Propertypublic void setNature(Name nature)
Property
setNature in interface Propertynature - the naturepublic void setRole(Name role)
Property
setRole in interface Propertyrole - the role
public void setValue(java.lang.Object value)
throws NotImplementedException
PropertyLeafProperty only).
setValue in interface Propertyvalue - 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 | ||||||||||