org.nodal.util
Class Names

java.lang.Object
  extended byorg.nodal.util.Names

public abstract class Names
extends java.lang.Object

A static factory class for creating Names and Namespaces.


Constructor Summary
Names()
           
 
Method Summary
static Name getName(java.lang.String nm)
          Access the Name associated with the given String.
static Name getNameInNamespace(java.lang.String ns, Name nm)
          Access the Name associated with the given String in the named Namespace.
static Name getNameInNamespace(java.lang.String ns, java.lang.String nm)
          Access the Name associated with the given String in the named Namespace.
static Namespace getNamespace(Path path)
          Access or create the unique Namespace with this name.
static Namespace getNamespace(java.lang.String uri)
          Access or create a Namespace with the given URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Names

public Names()
Method Detail

getName

public static Name getName(java.lang.String nm)
Access the Name associated with the given String.

Parameters:
nm - the name of the Name
Returns:
a unique Name

getNameInNamespace

public static Name getNameInNamespace(java.lang.String ns,
                                      java.lang.String nm)
Access the Name associated with the given String in the named Namespace.

Parameters:
ns - the name of the Namespace
nm - the name of the Name
Returns:
a unique Name in the given Namespace

getNameInNamespace

public static Name getNameInNamespace(java.lang.String ns,
                                      Name nm)
Access the Name associated with the given String in the named Namespace.

Parameters:
ns - the name of the Namespace
nm - the name of the Name
Returns:
a unique Name in the given Namespace

getNamespace

public static Namespace getNamespace(Path path)
Access or create the unique Namespace with this name.

Parameters:
path - the Path of the Namespace requested.
Returns:
the unique Namespace that has this Path.

getNamespace

public static Namespace getNamespace(java.lang.String uri)
Access or create a Namespace with the given URI.

Parameters:
uri - a URI String to identify the Namespace
Returns:
a Namespace associated with the Path with this URI