Class ConfXPath

Object
com.tailf.conf.InstancePath
com.tailf.conf.ConfXPath

public class ConfXPath extends InstancePath

Class Representing an XPath path. This class only supports a restriction of the XPath 1.0 grammar.

  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class InstancePath
    • hashCode

      public int hashCode()
      Description copied from class: InstancePath
      Returns a hash code value for the path. This method is supported for the benefit of hash tables such as those provided by java.util.Hashtable. The hash code is calculated from its component of ConfTag and ConfKey.
      Overrides:
      hashCode in class InstancePath
      Returns:
      a hash code value for this object.
    • getKP

      public ConfObject[] getKP()

      Returns an array of ConfTag and ConfKey objects which represents the path in reverted order.

      This method requires that the path is absolute and that the schema prefix for the root element is defined, if not a ConfException is thrown.

      The ConfKey is composed of the proper ConfValue types which are determined by the loaded schema. However, if this the schema information is not available, and the type therefore cannot be determined the key elements are defaulted to ConfBinary.

      Overrides:
      getKP in class InstancePath
      Returns:
      reverted array representation of this ConfPath
    • toString

      public String toString()
      return the Default String representation, which is the XPath string representation.
      Overrides:
      toString in class InstancePath
      Returns:
      default string representation
    • toKeyPathString

      public String toKeyPathString()
      return this path as a keypath string.
      Returns:
      keypath string representation