com.vhosting.netconf.frame
Class Data

java.lang.Object
  extended by com.vhosting.netconf.frame.Identity
      extended by com.vhosting.netconf.frame.IdentityCreator
          extended by com.vhosting.netconf.frame.Data

public class Data
extends IdentityCreator

This class provides the basic structure for reading data from a get or get-config operation. The class was designed having in mind the fact that it can be used in case of automated code generation from a YANG module. Nothing prevents, however, be used freely.

Version:
1.00, 09/10/2010
Author:
Giuseppe Palmeri

Field Summary
 
Fields inherited from class com.vhosting.netconf.frame.Identity
name, namespaceURI, prefix
 
Constructor Summary
Data(Capability cap)
          Create a Data structure for the specified capability.
 
Method Summary
 void clearValues()
          Clear the container container.
 Container getData()
          Get the first entry point to the structure as a container.
 boolean read(org.w3c.dom.Document doc)
          This method loads data from the specified XML document.
 
Methods inherited from class com.vhosting.netconf.frame.IdentityCreator
createAnyxml, createAnyxml, createContainer, createContainer, createContainerReference, createContainerReference, createIdentity, createIdentity, createLeaf, createLeaf, createLeafList, createLeafList, createList, createList, createListReference, createListReference
 
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
 

Constructor Detail

Data

public Data(Capability cap)
Create a Data structure for the specified capability.

Parameters:
cap - The Capability for which you want to read the data.
Method Detail

clearValues

public void clearValues()
Clear the container container. After the invocation of this method all the assigned values into the structure will be deleted.


getData

public final Container getData()
Get the first entry point to the structure as a container.

Returns:
The container.

read

public boolean read(org.w3c.dom.Document doc)
This method loads data from the specified XML document. The XML document should be coming from a get or get-config operation. The values loaded are available within the Data container.

Parameters:
doc - The XML document containing the data.
Returns:
true if it has been possible to load values into the structure; false otherwise.
See Also:
getData()