com.vhosting.netconf.frame
Class IdentityCreator

java.lang.Object
  extended by com.vhosting.netconf.frame.Identity
      extended by com.vhosting.netconf.frame.IdentityCreator
Direct Known Subclasses:
Data, Notification, Rpc

public abstract class IdentityCreator
extends Identity

This class adds convenience methods to an Identity. If you need these methods are readily available, an element can extend this class instead of directly to the Identity class.

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
protected IdentityCreator(Capability cap, java.lang.String name)
          Use this constructor when you decide to create a subclass.
 
Method Summary
static Anyxml createAnyxml(Capability cap, java.lang.String name)
          This is a convenience method that creates an Anyxml with the namespace of the specified Capability.
 Anyxml createAnyxml(java.lang.String name)
          This is a convenience method that creates an Anyxml with the namespace of the RPC operation.
static Container createContainer(Capability cap, java.lang.String name)
          This is a convenience method that creates a Container with the namespace of the specified Capability.
 Container createContainer(java.lang.String name)
          This is a convenience method that creates a Container with the namespace of the RPC operation.
static ContainerReference createContainerReference(Capability cap, java.lang.String name)
          This is a convenience method that creates a Container reference with the namespace of the specified Capability.
 ContainerReference createContainerReference(java.lang.String name)
          This is a convenience method that creates a Container reference with the namespace of the RPC operation.
static Identity createIdentity(Capability cap, java.lang.String name)
          This is a convenience method that creates an identity with the namespace of the specified Capability.
 Identity createIdentity(java.lang.String name)
          This is a convenience method that creates an identity with the namespace of the RPC operation.
static Leaf createLeaf(Capability cap, java.lang.String name)
          This is a convenience method that creates a leaf with the namespace of the specified Capability.
 Leaf createLeaf(java.lang.String name)
          This is a convenience method that creates a leaf with the namespace of the RPC operation.
static LeafList createLeafList(Capability cap, java.lang.String name)
          This is a convenience method that creates a leaf list with the namespace of the specified Capability.
 LeafList createLeafList(java.lang.String name)
          This is a convenience method that creates a leaf list with the namespace of the RPC operation.
static List createList(Capability cap, java.lang.String name)
          This is a convenience method that creates a list with the namespace of the specified Capability.
 List createList(java.lang.String name)
          This is a convenience method that creates a list with the namespace of the RPC operation.
static ListReference createListReference(Capability cap, java.lang.String name)
          This is a convenience method that creates a list reference with the namespace of the specified Capability.
 ListReference createListReference(java.lang.String name)
          This is a convenience method that creates a list reference with the namespace of the RPC operation.
 
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

IdentityCreator

protected IdentityCreator(Capability cap,
                          java.lang.String name)
Use this constructor when you decide to create a subclass.

Parameters:
cap - The Capability.
name - The name of the Identity.
Method Detail

createIdentity

public Identity createIdentity(java.lang.String name)
This is a convenience method that creates an identity with the namespace of the RPC operation.

Parameters:
name - The name of the identity.
Returns:
The identity reference.

createLeaf

public Leaf createLeaf(java.lang.String name)
This is a convenience method that creates a leaf with the namespace of the RPC operation.

Parameters:
name - The name of the leaf.
Returns:
The leaf.

createLeafList

public LeafList createLeafList(java.lang.String name)
This is a convenience method that creates a leaf list with the namespace of the RPC operation.

Parameters:
name - The name of the leaf list.
Returns:
The leaf list.

createList

public List createList(java.lang.String name)
This is a convenience method that creates a list with the namespace of the RPC operation.

Parameters:
name - The name of the list.
Returns:
The list.

createListReference

public ListReference createListReference(java.lang.String name)
This is a convenience method that creates a list reference with the namespace of the RPC operation.

Parameters:
name - The name of the list.
Returns:
The list reference.

createAnyxml

public Anyxml createAnyxml(java.lang.String name)
This is a convenience method that creates an Anyxml with the namespace of the RPC operation.

Parameters:
name - The name of the Anyxml.
Returns:
The Anyxml.

createContainer

public Container createContainer(java.lang.String name)
This is a convenience method that creates a Container with the namespace of the RPC operation.

Parameters:
name - The name of the Container.
Returns:
The Container.

createContainerReference

public ContainerReference createContainerReference(java.lang.String name)
This is a convenience method that creates a Container reference with the namespace of the RPC operation.

Parameters:
name - The name of the Container.
Returns:
The Container reference.

createIdentity

public static Identity createIdentity(Capability cap,
                                      java.lang.String name)
This is a convenience method that creates an identity with the namespace of the specified Capability.

Parameters:
name - The name of the identity.
Returns:
The identity reference.

createLeaf

public static Leaf createLeaf(Capability cap,
                              java.lang.String name)
This is a convenience method that creates a leaf with the namespace of the specified Capability.

Parameters:
name - The name of the leaf.
Returns:
The leaf.

createLeafList

public static LeafList createLeafList(Capability cap,
                                      java.lang.String name)
This is a convenience method that creates a leaf list with the namespace of the specified Capability.

Parameters:
name - The name of the leaf list.
Returns:
The leaf list.

createList

public static List createList(Capability cap,
                              java.lang.String name)
This is a convenience method that creates a list with the namespace of the specified Capability.

Parameters:
name - The name of the list.
Returns:
The list.

createListReference

public static ListReference createListReference(Capability cap,
                                                java.lang.String name)
This is a convenience method that creates a list reference with the namespace of the specified Capability.

Parameters:
name - The name of the list.
Returns:
The list reference.

createAnyxml

public static Anyxml createAnyxml(Capability cap,
                                  java.lang.String name)
This is a convenience method that creates an Anyxml with the namespace of the specified Capability.

Parameters:
name - The name of the Anyxml.
Returns:
The Anyxml.

createContainer

public static Container createContainer(Capability cap,
                                        java.lang.String name)
This is a convenience method that creates a Container with the namespace of the specified Capability.

Parameters:
name - The name of the Container.
Returns:
The Container.

createContainerReference

public static ContainerReference createContainerReference(Capability cap,
                                                          java.lang.String name)
This is a convenience method that creates a Container reference with the namespace of the specified Capability.

Parameters:
name - The name of the Container.
Returns:
The Container reference.