com.smallx.xml.infoset.memory
Class MemoryNameTable

java.lang.Object
  extended bycom.smallx.xml.infoset.memory.MemoryNameTable
All Implemented Interfaces:
NameTable

public class MemoryNameTable
extends java.lang.Object
implements NameTable


Constructor Summary
MemoryNameTable()
           
 
Method Summary
 Name createName(java.lang.String localName)
          Creates an unqualifed name instance from a character buffer.
 Name createName(java.net.URI namespace, java.lang.String localName)
          Creates a name instance from a string.
 java.net.URI createNamespace(java.lang.String namespace)
          Creates a namespace name URI from a string.
static NameTable getDefaultNameTable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryNameTable

public MemoryNameTable()
Method Detail

getDefaultNameTable

public static NameTable getDefaultNameTable()

createNamespace

public java.net.URI createNamespace(java.lang.String namespace)
                             throws java.net.URISyntaxException
Description copied from interface: NameTable
Creates a namespace name URI from a string.

Specified by:
createNamespace in interface NameTable
Parameters:
namespace - The string representation of the URI.
Returns:
A URI instance representing the namespace name.
Throws:
java.net.URISyntaxException

createName

public Name createName(java.net.URI namespace,
                       java.lang.String localName)
Description copied from interface: NameTable
Creates a name instance from a string.

Specified by:
createName in interface NameTable
Parameters:
namespace - The namespace name to use.
localName - The string containing the local name.
Returns:
A name instance.

createName

public Name createName(java.lang.String localName)
Description copied from interface: NameTable
Creates an unqualifed name instance from a character buffer.

Specified by:
createName in interface NameTable
Parameters:
localName - The string containing local name to use.
Returns:
A name instance;