com.vhosting.netconf.frame
Class ContainerReference

java.lang.Object
  extended by com.vhosting.netconf.frame.Identity
      extended by com.vhosting.netconf.frame.ContainerReference
All Implemented Interfaces:
Node
Direct Known Subclasses:
Container

public class ContainerReference
extends Identity
implements Node

A container reference defines the identity of a container with which it is possible to instantiate a new container with the same characteristics and structure mirrored in common.

Version:
1.00, 09/10/2010
Author:
Giuseppe Palmeri
See Also:
createMirrorContainer(), Container

Field Summary
 
Fields inherited from class com.vhosting.netconf.frame.Identity
name, namespaceURI, prefix
 
Method Summary
 Anyxml linkAnyxml(Anyxml anyxml)
          Link an Anyxml to this node as part of the RPC structure.
 Container linkContainer(Container c)
          Link a Container to this container as part of the RPC structure.
 Leaf linkLeaf(Leaf l)
          Link a leaf to this node as part of the RPC structure.
 LeafList linkLeafList(LeafList l)
          Link a leaf list to this node as part of the RPC structure.
 List linkList(List l)
          Link a List to this container as part of the RPC structure.
 void setPresence(boolean b)
          Specifies whether the container should be considered to exist even when there are not assigned elements or sub elements.
 
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
 

Method Detail

setPresence

public void setPresence(boolean b)
Specifies whether the container should be considered to exist even when there are not assigned elements or sub elements.

Parameters:
b - True if this container is a presence container; false otherwise.

linkLeaf

public Leaf linkLeaf(Leaf l)
Description copied from interface: Node
Link a leaf to this node as part of the RPC structure.

Specified by:
linkLeaf in interface Node
Parameters:
l - The leaf element to link.
Returns:
The linked leaf element.

linkLeafList

public LeafList linkLeafList(LeafList l)
Description copied from interface: Node
Link a leaf list to this node as part of the RPC structure.

Specified by:
linkLeafList in interface Node
Parameters:
l - The leaf list element to link.
Returns:
The linked leaf list element.

linkAnyxml

public Anyxml linkAnyxml(Anyxml anyxml)
Description copied from interface: Node
Link an Anyxml to this node as part of the RPC structure.

Specified by:
linkAnyxml in interface Node
Parameters:
anyxml - The Anyxml element to link.
Returns:
The linked Anyxml element.

linkList

public List linkList(List l)
Link a List to this container as part of the RPC structure.

Parameters:
l - The List element to link.
Returns:
The linked List element.

linkContainer

public Container linkContainer(Container c)
Link a Container to this container as part of the RPC structure.

Parameters:
c - The Container element to link.
Returns:
The linked Container element.