|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Properties are one of the key components of the TreeBind data model.
In streaming mode, they don't appear explictely but are implicitely exposed through
Sink.startProperty(Name, Name)
, Sink.endProperty()
and
Sink.addLeaf(Name, Name, Object)
methods.
TreeBind properties can be either LeafProperty
or
ComplexProperty
.
LeafProperty
,
ComplexProperty
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). |
Method Detail |
public void addProperty(int position, Property property) throws NotImplementedException
ComplexProperty
only.
property
- the sub property
NotImplementedException
- when a property is added to a LeafProperty
public void addProperty(Property property) throws NotImplementedException
ComplexProperty
only.
property
- the sub property
NotImplementedException
- when a property is added to a LeafProperty
public Name getNature()
public java.util.Iterator getProperties()
ComplexProperty
only.
public java.util.Iterator getPropertiesWithNature(Name nature)
ComplexProperty
only.
public java.util.Iterator getPropertiesWithRole(Name role)
ComplexProperty
only.
public java.util.Iterator getPropertiesWithRoleAndNature(Name role, Name nature)
ComplexProperty
only.
public Name getRole()
public java.lang.Object getValue()
LeafProperty
only).
public int nbProperties()
ComplexProperty
only.
public void setNature(Name nature)
nature
- the naturepublic void setRole(Name role)
role
- the rolepublic void setValue(java.lang.Object value) throws NotImplementedException
LeafProperty
only).
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 |