Package com.tailf.conf
Class ConfList
Object
com.tailf.conf.ConfObject
com.tailf.conf.ConfValue
com.tailf.conf.ConfList
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<ConfList>
DATA_CONTAINER - Corresponds to the YANG leaf-list.
- See Also:
-
Nested Class Summary
-
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 TypeMethodDescriptionvoid
Add an element in the end of this ConfList unless it already existsint
void
delete
(ConfObject n) Delete arbitrary object from the ConfListelements()
Return a copy as array of thisencode()
encode value.boolean
Determine if two ConfValue are equal.get
(int index) int
hashCode()
boolean
int
length()
void
move
(ConfObject n, ConfList.WhereTo where, ConfObject to) Move a list element to a new position in the list.set
(int index, ConfObject val) toString()
Methods inherited from class com.tailf.conf.ConfValue
getStringByValue, getStringByValue, getValueByString, getValueByString
Methods inherited from class com.tailf.conf.ConfObject
clone, decode
-
Constructor Details
-
ConfList
-
ConfList
public ConfList() -
ConfList
- Throws:
ConfException
-
-
Method Details
-
set
-
get
-
elements
Return a copy as array of this -
addElem
Add an element in the end of this ConfList unless it already exists- Parameters:
n
- object to add
-
delete
Delete arbitrary object from the ConfList- Parameters:
n
- object to remove
-
move
Move a list element to a new position in the list. The destination can be at the beginning, the end or in a relation to another element. This only makes sense for leaf-lists that are ordered by user.- Parameters:
n
- object to move according to WhereTowhere
- How the move should be performed. Move object WhereTo.FIRST or WhereTo.LAST or move object WhereTo.BEFORE or WhereTo.AFTER the element to.to
- If the value of whereTo is WhereTo.FIRST or WhereTo.LAST this argument ignored- Throws:
ConfException
-
isMember
-
length
public int length() -
equals
Description copied from class:ConfValue
Determine if two ConfValue are equal. In general, ConfObjects are equal if the components they consist of are equal. -
hashCode
public int hashCode() -
toString
-
encode
Description copied from class:ConfValue
encode value. -
compareTo
- Specified by:
compareTo
in interfaceComparable<ConfList>
-