com.wm.lang.ns
Class NSName

java.lang.Object
  extended by LocalizedException
      extended by com.wm.lang.ns.NSName

public class NSName
extends LocalizedException

Instances of this class represent syntactically valid names in the namespace. Note that a syntactically valid name does not mean that it exists in the server's namespace.

A fully qualified namespace name consists of an interface and a (optional) node name. An interface is specified by one or more sub-interface names separated with a period ("."). Node names are separated with a colon (":").

For example, the following are valid names in the namespace:


Constructor Summary
NSName()
           
 
Method Summary
static NSName create(java.lang.String name)
          Converts a string into an NSName.
 java.lang.String toString()
          Returns a String representation for this name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NSName

public NSName()
Method Detail

create

public static NSName create(java.lang.String name)
Converts a string into an NSName. It parses the name and creates a new instance if one does not already exist.

Parameters:
name - The fully-qualified name
Returns:
A corresponding NSName

toString

public java.lang.String toString()
Returns a String representation for this name.

Returns:
The fully-qualified name of this node