public class ConfObjectRef extends ConfValue implements Cloneable, Serializable, Comparable<ConfObjectRef>
The following are examples of instance identifiers:
// instance-identifier for a container
/ex:system/ex:services/ex:ssh
// instance-identifier for a leaf
/ex:system/ex:services/ex:ssh/ex:port
// instance-identifier for a list entry
/ex:system/ex:user[ex:name='fred']
// instance-identifier for a leaf in a list entry
/ex:system/ex:user[ex:name='fred']/ex:type
// instance-identifier for a list entry with two keys
/ex:system/server[ip='192.0.2.1'][port='80']/system/
server[ip='192.0.2.1' ex:port='80']
// instance-identifier for a leaf-list entry
/ex:system/ex:services/ex:ssh/ex:cipher[.='blowfish-cbc']
// instance-identifier for a list entry without keys
/ex:stats/ex:port[3]
// instance-identifier for a leaf-list entry
/ex:system/ex:services/ex:ssh/ex:cipher[.='blowfish-cbc']
J_BINARY, J_BIT32, J_BIT64, J_BOOL, J_BUF, J_CDBBEGIN, J_DATE, J_DATETIME, J_DECIMAL64, J_DEFAULT, J_DOUBLE, J_DQUAD, J_DURATION, J_ENUMERATION, J_HEXSTR, J_IDENTITYREF, J_INSTANCE_IDENTIFIER, J_INT16, J_INT32, J_INT64, J_INT8, J_IPV4, J_IPV4_AND_PLEN, J_IPV4PREFIX, J_IPV6, J_IPV6_AND_PLEN, J_IPV6PREFIX, J_LIST, J_NOEXISTS, J_OBJECTREF, J_OID, J_PTR, J_QNAME, J_STR, J_SYMBOL, J_TIME, J_UINT16, J_UINT32, J_UINT64, J_UINT8, J_UNION, J_XMLBEGIN, J_XMLBEGINDEL, J_XMLEND, J_XMLTAG| Constructor and Description |
|---|
ConfObjectRef(ConfObject[] elems)
Constructor using the autoloaded namespaces.
|
ConfObjectRef(ConfPath path)
Construct a ConfObjectRef from a given Absolute ConfPath.
|
ConfObjectRef(String xpath) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ConfObjectRef o) |
ConfEObject |
encode()
encode value.
|
boolean |
equals(Object o)
Determine if two ConfValue are equal.
|
ConfObject[] |
getElems() |
int |
hashCode() |
String |
toString() |
getStringByValue, getStringByValue, getValueByString, getValueByStringclone, decodepublic ConfObjectRef(ConfObject[] elems)
elems - public ConfObjectRef(ConfPath path) throws ConfException
path - ConfException - if the given path is relative.public ConfObjectRef(String xpath) throws ConfException
ConfExceptionpublic int compareTo(ConfObjectRef o)
compareTo in interface Comparable<ConfObjectRef>public ConfEObject encode()
ConfValuepublic boolean equals(Object o)
ConfValuepublic ConfObject[] getElems()