Class PropertyPath


  • public class PropertyPath
    extends java.lang.Object
    A path to a 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

      • 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
      • 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