net.infonode.properties.util

Class PropertyPath

public class PropertyPath extends Object

A path to a property.

Version: $Revision: 1.3 $

Author: $Author: jesper $

Constructor Summary
PropertyPath(Property property)
Creates a path containing a single property.
PropertyPath(Property property, PropertyPath tail)
Creates a path by prepending a path with a property.
Method Summary
PropertyPathcopy()
Creates a new path that is a copy of this path.
PropertygetProperty()
Returns the first property in this path.
PropertyPathgetTail()
Returns the path after the first property.

Constructor Detail

PropertyPath

public PropertyPath(Property property)
Creates a path containing a single property.

Parameters: property the property

PropertyPath

public PropertyPath(Property property, PropertyPath tail)
Creates a path by prepending a path with a property.

Parameters: property the property to prepend tail the path to prepend to

Method Detail

copy

public PropertyPath copy()
Creates a new path that is a copy of this path. The properties are not copied.

Returns: a copy of this path

getProperty

public Property getProperty()
Returns the first property in this path.

Returns: the first property in the path

getTail

public PropertyPath getTail()
Returns the path after the first property.

Returns: the path after the first property