|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vhosting.netconf.frame.Identity
com.vhosting.netconf.frame.ListReference
com.vhosting.netconf.frame.List
public class List
This class represents a list in the PRC structure.
A list is a special element that can be linked
to any other element to create complex structures.
A list is the most complex structure within the PRC structure.
It's very similar to a container with not presence,
but allows the assignment of their sub elements to a
minimum to a maximum of times.
Can be connected to a list elements such as:
Leaf, LeafList, Anyxml, ContainerReference, ListReference.
Field Summary |
---|
Fields inherited from class com.vhosting.netconf.frame.Identity |
---|
name, namespaceURI, prefix |
Constructor Summary | |
---|---|
List(Capability cap,
java.lang.String name)
Create a list. |
|
List(Capability cap,
java.lang.String name,
long min)
Create a list. |
|
List(Capability cap,
java.lang.String name,
long min,
long max)
Create a list. |
Method Summary | |
---|---|
void |
assign(ListValue[] lv)
Assign the set of values for this list. |
void |
clear()
Remove all assignments of values made up for himself or on their sub elements in a recursive manner. |
ListValue |
createListValue()
Create an instance of ListValue compatible with this list. |
ListValue[] |
getValues()
Get all instances of ListValue associated with the list. |
boolean |
hasValues()
Check if assignments were made up for himself or on their sub elements in a recursive manner. |
Methods inherited from class com.vhosting.netconf.frame.ListReference |
---|
getMaximum, getMinimum, linkAnyxml, linkContainerReference, linkLeaf, linkLeafList, linkListReference |
Methods inherited from class com.vhosting.netconf.frame.Identity |
---|
getName, getNamespaceURI, getPrefix, getUniqueNane |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.vhosting.netconf.frame.Node |
---|
linkAnyxml, linkLeaf, linkLeafList |
Constructor Detail |
---|
public List(Capability cap, java.lang.String name, long min, long max)
cap
- The capability that this list reference belongs.name
- The name of the list.min
- The minimum limit of set of assignments which can be assigned.max
- The maximum limit of set of assignments which can be assigned.public List(Capability cap, java.lang.String name, long min)
cap
- The capability that this list reference belongs.name
- The name of the list.min
- The minimum limit of set of assignments which can be assigned.public List(Capability cap, java.lang.String name)
cap
- The capability that this list reference belongs.name
- The name of the list.Method Detail |
---|
public void clear()
Clearable
clear
in interface Clearable
public boolean hasValues()
Clearable
hasValues
in interface Clearable
public ListValue createListValue()
public void assign(ListValue[] lv)
lv
- An array of ListValue instances.public ListValue[] getValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |