|
||||||||||
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.ContainerReference
com.vhosting.netconf.frame.Container
public class Container
This class represents a container in the PRC structure.
A container is a special element that can be linked
to any other element to create complex structures.
Can be connected to a container elements such as:
Leaf, LeafList, Anyxml, Container, List.
Field Summary |
---|
Fields inherited from class com.vhosting.netconf.frame.Identity |
---|
name, namespaceURI, prefix |
Constructor Summary | |
---|---|
protected |
Container(Capability cap,
java.lang.String name)
Create a Container. |
Method Summary | |
---|---|
void |
assignAnyxml(Anyxml a,
org.w3c.dom.Document e)
Allows you to assign an XML document to an Anyxml element previously linked to this. |
void |
assignLeaf(Leaf l,
java.lang.String canonicalValue)
Allows you to assign a value to a leaf element previously linked to this. |
void |
assignLeafList(LeafList l,
java.lang.String[] canonicalValues)
Allows you to assign values to a leaf list element previously linked to this. |
void |
clear()
Remove all assignments of values made up for himself or on their sub elements in a recursive manner. |
java.util.List<Attribute> |
getAnyxmlAttributes(Anyxml a)
Get the list of attributes of the specified Anyxml element previously linked to this. |
org.w3c.dom.Document |
getAnyxmlValue(Anyxml a)
Get the XML Document of the specified Anyxml element previously linked to this. |
java.lang.Object |
getElemetByUniqueName(java.lang.String uniqueName)
Get an element of the PRC structure previously linked to this through its unique name. |
java.util.List<Attribute> |
getLeafAttributes(Leaf l)
Get the list of attributes of the specified leaf element previously linked to this. |
java.lang.String |
getLeafCanonicalValue(Leaf l)
Get the value of the specified leaf element previously linked to this. |
java.util.List<Attribute>[] |
getLeafListAttributes(LeafList l)
Get the lists of attributes of the specified leaf list element previously linked to this. |
java.lang.String[] |
getLeafListCanonicalValues(LeafList l)
Get the values of the specified leaf list element previously linked to this. |
java.util.Set<java.lang.String> |
getUniqueNanes()
Get all the unique names of the elements previously linked to this. |
boolean |
hasValues()
Check if assignments were made up for himself or on their sub elements in a recursive manner. |
void |
unsetAnyxml(Anyxml a)
Unset the XML document associated with the specified Anyxml element previously linked to this. |
void |
unsetLeaf(Leaf l)
Unset the value associated with the specified leaf element previously linked to this. |
void |
unsetLeafList(LeafList l)
Unset the values associated with the specified leaf list element previously linked to this. |
Methods inherited from class com.vhosting.netconf.frame.ContainerReference |
---|
linkAnyxml, linkContainer, linkLeaf, linkLeafList, linkList, setPresence |
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 |
---|
protected Container(Capability cap, java.lang.String name)
cap
- The capability that this container belongs.name
- The name of the container.Method Detail |
---|
public void clear()
Clearable
clear
in interface Clearable
public boolean hasValues()
Clearable
hasValues
in interface Clearable
public void assignLeaf(Leaf l, java.lang.String canonicalValue)
Assignable
l
- The leaf element.canonicalValue
- The value of the leaf.Node
public void assignLeafList(LeafList l, java.lang.String[] canonicalValues)
Assignable
l
- The leaf list element.canonicalValues
- The values of the leaf list.Node
public void assignAnyxml(Anyxml a, org.w3c.dom.Document e)
Assignable
a
- The Anyxml element.e
- The XML Document.Anyxml.createEmptyDocument()
public java.lang.String getLeafCanonicalValue(Leaf l)
Assignable
l
- The leaf element.
public java.lang.String[] getLeafListCanonicalValues(LeafList l)
Assignable
l
- The leaf list element.
public org.w3c.dom.Document getAnyxmlValue(Anyxml a)
Assignable
a
- The Anyxml element.
public void unsetLeaf(Leaf l)
Assignable
l
- The leaf element.public void unsetLeafList(LeafList l)
Assignable
l
- The leaf list element.public void unsetAnyxml(Anyxml a)
Assignable
a
- The Anyxml element.public java.util.Set<java.lang.String> getUniqueNanes()
public java.lang.Object getElemetByUniqueName(java.lang.String uniqueName)
uniqueName
- The unique name of the element.
public java.util.List<Attribute> getLeafAttributes(Leaf l)
Assignable
l
- The leaf element.
public java.util.List<Attribute>[] getLeafListAttributes(LeafList l)
Assignable
l
- The leaf list element.
public java.util.List<Attribute> getAnyxmlAttributes(Anyxml a)
Assignable
a
- The Anyxml element.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |