public class ConfXPath extends InstancePath
Class Representing an XPath path. This class only supports a restriction of the XPath 1.0 grammar.
Constructor and Description |
---|
ConfXPath(String xpath) |
ConfXPath(String xpath,
MountIdInterface mountGetter) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ConfObject[] |
getKP()
Returns an array of
ConfTag and ConfKey
objects which represents the path in reverted order. |
int |
hashCode()
Returns a hash code value for the path.
|
String |
toKeyPathString()
return this path as a keypath string.
|
String |
toString()
return the Default String representation, which is the XPath string
representation.
|
atoString, encode, encodeIKP, getCSNode, getLatestMountId, getMountIdGetter, isKey, isParsingDeferred, isRel, setMountIdGetter, toXPathString
public ConfXPath(String xpath) throws ConfException
ConfException
public ConfXPath(String xpath, MountIdInterface mountGetter) throws ConfException
ConfException
public boolean equals(Object o)
equals
in class InstancePath
public int hashCode()
InstancePath
java.util.Hashtable
.
The hash code is calculated from its component of ConfTag
and ConfKey
.hashCode
in class InstancePath
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
.
getKP
in class InstancePath
ConfPath
ConfException
- If schema information is not loaded,
the path is not valid or the parsed path
has no namespace information.public String toString()
toString
in class InstancePath
public String toKeyPathString()