|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.treebind.DefaultPropertyImplementation org.treebind.LeafProperty
Property
with a value and no sub-properties.
Properties are either leaf or complex. This is the implementation of leaf
properties.
Property
,
ComplexProperty
Constructor Summary | |
LeafProperty(Name role,
Name nature)
Creates a new leaf property |
|
LeafProperty(Name role,
Name nature,
java.lang.Object value)
Creates a new leaf property |
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. |
Methods inherited from class org.treebind.DefaultPropertyImplementation |
getNature, getProperties, getPropertiesWithNature, getPropertiesWithRole, getPropertiesWithRoleAndNature, getRole, getValue, nbProperties, setNature, setRole, setValue |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.treebind.Property |
getNature, getProperties, getPropertiesWithNature, getPropertiesWithRole, getPropertiesWithRoleAndNature, getRole, getValue, nbProperties, setNature, setRole, setValue |
Constructor Detail |
public LeafProperty(Name role, Name nature)
role
- the property role.nature
- the property nature.public LeafProperty(Name role, Name nature, java.lang.Object value)
role
- the property role.nature
- the property nature.value
- the value of the property.Method Detail |
public void addProperty(int position, Property property) throws NotImplementedException
Property
ComplexProperty
only.
addProperty
in interface Property
addProperty
in class DefaultPropertyImplementation
NotImplementedException
public void addProperty(Property property) throws NotImplementedException
Property
ComplexProperty
only.
addProperty
in interface Property
addProperty
in class DefaultPropertyImplementation
NotImplementedException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |