com.vhosting.netconf.frame
Class ListReference

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

public class ListReference
extends Identity
implements Node

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

Version:
1.00, 09/10/2010
Author:
Giuseppe Palmeri
See Also:
createMirrorList(), List

Field Summary
 
Fields inherited from class com.vhosting.netconf.frame.Identity
name, namespaceURI, prefix
 
Constructor Summary
ListReference(Capability cap, java.lang.String name)
          Create a list reference without limits.
ListReference(Capability cap, java.lang.String name, long min)
          Create a list reference.
ListReference(Capability cap, java.lang.String name, long min, long max)
          Create a list reference.
 
Method Summary
 long getMaximum()
          Get the maximum limit of set of assignments which can be assigned.
 long getMinimum()
          Get the minimum limit of set of assignments which can be assigned.
 Anyxml linkAnyxml(Anyxml anyxml)
          Link an Anyxml to this node as part of the RPC structure.
 ContainerReference linkContainerReference(ContainerReference cr)
          Link a Container reference to this node 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.
 ListReference linkListReference(ListReference lr)
          Link a List reference to this node as part of the RPC structure.
 
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

ListReference

public ListReference(Capability cap,
                     java.lang.String name,
                     long min,
                     long max)
Create a list reference.

Parameters:
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.

ListReference

public ListReference(Capability cap,
                     java.lang.String name,
                     long min)
Create a list reference.

Parameters:
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.

ListReference

public ListReference(Capability cap,
                     java.lang.String name)
Create a list reference without limits.

Parameters:
cap - The capability that this list reference belongs.
name - The name of the list.
Method Detail

getMinimum

public final long getMinimum()
Get the minimum limit of set of assignments which can be assigned.

Returns:
The minimum limit of set of assignments which can be assigned.

getMaximum

public final long getMaximum()
Get the maximum limit of set of assignments which can be assigned.

Returns:
The maximum limit of set of assignments which can be assigned.

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.

linkContainerReference

public ContainerReference linkContainerReference(ContainerReference cr)
Link a Container reference to this node as part of the RPC structure.

Parameters:
cr - The Container reference element to link.
Returns:
The linked Container reference element.

linkListReference

public ListReference linkListReference(ListReference lr)
Link a List reference to this node as part of the RPC structure.

Parameters:
lr - The List reference element to link.
Returns:
The linked List reference element.