Package com.tailf.conf
Class ConfKey
Object
com.tailf.conf.ConfObject
com.tailf.conf.ConfKey
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
ConfXKey
This class represents a list key or a leaf-list element.
A list key can consist of one or more values.
- See Also:
-
Field Summary
Fields inherited from class com.tailf.conf.ConfObject
J_BINARY, J_BIT32, J_BIT64, J_BITBIG, 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_XMLMOVEAFTER, J_XMLMOVEFIRST, J_XMLTAG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionelementAt
(int i) elements()
encode()
boolean
Indicates whether aConfKey
is "equal to" this.int
hashCode()
int
length()
void
setPath
(InstancePath path) This method is only useful if at least one of the key elements is an enumeration.Returns a string representation of the ConfKey.toString()
Returns a string representation of the ConfKey.Methods inherited from class com.tailf.conf.ConfObject
clone, decode
-
Constructor Details
-
ConfKey
-
ConfKey
-
ConfKey
- Throws:
ConfException
-
-
Method Details
-
elementAt
-
elements
-
length
public int length() -
equals
Indicates whether aConfKey
is "equal to" this.A
ConfKey
is equals this if its components are equals.- Specified by:
equals
in classConfObject
- Parameters:
o
- the referenceConfKey
with which to compare.- Returns:
true
if thisConfKey
is the same as the o argument;false
otherwise.
-
hashCode
public int hashCode()- Specified by:
hashCode
in classConfObject
-
toStrictlyQuotedString
Returns a string representation of the ConfKey. The key elements will be quoted if necessary.- Returns:
- String representation of the key
-
toString
Returns a string representation of the ConfKey. The key elements will be quoted if necessary. Note however that this string representation is available for backward compatibility and is unsuitable for use in keypaths. Instead usetoStrictlyQuotedString()
.- Specified by:
toString
in classConfObject
- Returns:
- String representation of the key
-
encode
- Specified by:
encode
in classConfObject
-
setPath
This method is only useful if at least one of the key elements is an enumeration. In such case this method will assign the MaapiSchemas type to all such elements to be able to get a correct label when converting the key into its String representation. The path provided as an argument needs to point to the list node in the data model.
-