Package net.infonode.properties.util
Class PropertyPath
java.lang.Object
net.infonode.properties.util.PropertyPath
A path to a property.
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyPath
(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
-
Constructor Details
-
PropertyPath
Creates a path containing a single property.- Parameters:
property
- the property
-
PropertyPath
Creates a path by prepending a path with a property.- Parameters:
property
- the property to prependtail
- the path to prepend to
-
-
Method Details
-
getProperty
Returns the first property in this path.- Returns:
- the first property in the path
-
getTail
Returns the path after the first property.- Returns:
- the path after the first property
-
copy
Creates a new path that is a copy of this path. The properties are not copied.- Returns:
- a copy of this path
-