com.vhosting.netconf.frame
Class Identity

java.lang.Object
  extended by com.vhosting.netconf.frame.Identity
Direct Known Subclasses:
Anyxml, Attribute, ContainerReference, IdentityCreator, Leaf, LeafList, ListReference

public class Identity
extends java.lang.Object

This class allows to implement objects that possess a specific identity within the Netconf system. An identity is characterized by its own name, namespace and its own unique name.

 The shape of a unique name is:
 
 <namespace prefix> : <name>
 
 Identity example:
 
 Namespace = http://www.example.com/example
 Name = myexample
 Unique Name = ex:myexample
 
 Where 'ex' is the prefix of the 'http://www.example.com/example' namespace.
 
An identity can be treated as a value within a Netconf structure such as Rpc. The value to assign to the element, in this case is given by the method getUniqueName();

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

Field Summary
protected  java.lang.String name
          The identity name.
protected  java.lang.String namespaceURI
          The identity namespace URI.
protected  java.lang.String prefix
          The identity prefix.
 
Constructor Summary
Identity(Capability cap, java.lang.String name)
          Create an identity for a specified capability.
 
Method Summary
 java.lang.String getName()
          Get the name of the identity.
 java.lang.String getNamespaceURI()
          Get the namespace URI of the identity.
 java.lang.String getPrefix()
          Get the namespace prefix of the identity.
 java.lang.String getUniqueNane()
          Get the unique name of the identity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

namespaceURI

protected java.lang.String namespaceURI
The identity namespace URI.


prefix

protected java.lang.String prefix
The identity prefix.


name

protected java.lang.String name
The identity name.

Constructor Detail

Identity

public Identity(Capability cap,
                java.lang.String name)
Create an identity for a specified capability.

Parameters:
cap - The capability of this identity.
name - The name of the identity.
Method Detail

getUniqueNane

public java.lang.String getUniqueNane()
Get the unique name of the identity.

Returns:
The unique name of the identity.

getName

public java.lang.String getName()
Get the name of the identity.

Returns:
The name of the identity.

getNamespaceURI

public java.lang.String getNamespaceURI()
Get the namespace URI of the identity.

Returns:
The namespace URI of the identity.

getPrefix

public java.lang.String getPrefix()
Get the namespace prefix of the identity.

Returns:
The prefix.