com.smallx.xml.infoset
Interface NameTable

All Known Subinterfaces:
Infoset
All Known Implementing Classes:
MemoryInfoset, MemoryNameTable

public interface NameTable

This interface represents a construction facility for names. This allows an implementation to cache names.


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.
 

Method Detail

createNamespace

public java.net.URI createNamespace(java.lang.String namespace)
                             throws java.net.URISyntaxException
Creates a namespace name URI from a string.

Parameters:
namespace - The string representation of the URI.
Returns:
A URI instance representing the namespace name.
Throws:
MalformedURIException - Thrown when the representation does not conform to URI RFC rules.
java.net.URISyntaxException

createName

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

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)
Creates an unqualifed name instance from a character buffer.

Parameters:
localName - The string containing local name to use.
Returns:
A name instance;