org.treebind
Class LeafProperty

java.lang.Object
  extended byorg.treebind.DefaultPropertyImplementation
      extended byorg.treebind.LeafProperty
All Implemented Interfaces:
Property

public class LeafProperty
extends DefaultPropertyImplementation
implements Property

Property with a value and no sub-properties. Properties are either leaf or complex. This is the implementation of leaf properties.

Author:
Eric van der Vlist
See Also:
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

LeafProperty

public LeafProperty(Name role,
                    Name nature)
Creates a new leaf property

Parameters:
role - the property role.
nature - the property nature.

LeafProperty

public LeafProperty(Name role,
                    Name nature,
                    java.lang.Object value)
Creates a new leaf property

Parameters:
role - the property role.
nature - the property nature.
value - the value of the property.
Method Detail

addProperty

public void addProperty(int position,
                        Property property)
                 throws NotImplementedException
Description copied from interface: Property
Add a sub property at a specific position (for ComplexProperty only.

Specified by:
addProperty in interface Property
Overrides:
addProperty in class DefaultPropertyImplementation
Throws:
NotImplementedException

addProperty

public void addProperty(Property property)
                 throws NotImplementedException
Description copied from interface: Property
Add a sub property (for ComplexProperty only.

Specified by:
addProperty in interface Property
Overrides:
addProperty in class DefaultPropertyImplementation
Throws:
NotImplementedException