Package com.tailf.conf
Class ConfXPath
Object
com.tailf.conf.InstancePath
com.tailf.conf.ConfXPath
Class Representing an XPath path. This class only supports a restriction of the XPath 1.0 grammar.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getKP()
Returns an array ofConfTag
andConfKey
objects which represents the path in reverted order.int
hashCode()
Returns a hash code value for the path.return this path as a keypath string.toString()
return the Default String representation, which is the XPath string representation.Methods inherited from class com.tailf.conf.InstancePath
atoString, encode, encodeIKP, getCSNode, getLatestMountId, getMountIdGetter, isKey, isParsingDeferred, isRel, setMountIdGetter, toXPathString
-
Constructor Details
-
ConfXPath
- Throws:
ConfException
-
ConfXPath
- Throws:
ConfException
-
-
Method Details
-
equals
- Overrides:
equals
in classInstancePath
-
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 byjava.util.Hashtable
. The hash code is calculated from its component ofConfTag
andConfKey
.- Overrides:
hashCode
in classInstancePath
- Returns:
- a hash code value for this object.
-
getKP
Returns an array of
ConfTag
andConfKey
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 properConfValue
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 toConfBinary
.- Overrides:
getKP
in classInstancePath
- Returns:
- reverted array representation of this
ConfPath
-
toString
return the Default String representation, which is the XPath string representation.- Overrides:
toString
in classInstancePath
- Returns:
- default string representation
-
toKeyPathString
return this path as a keypath string.- Returns:
- keypath string representation
-