com.openharbor.beck.xml
Class XMLName

java.lang.Object
  extended bycom.openharbor.beck.xml.XMLName

public class XMLName
extends java.lang.Object

An XML attribute or element name, consisting of an optional namespace URI and a string. Does not contain the prefix that is used in XML to refer to the namespace URI. Immutable.


Field Summary
static XMLName EMPTY_NAME
           
static java.util.Map NAMESPACE_TO_STANDARD_PREFIX
          Maps from a namespace URI to a standard prefix which represents that URI.
static java.lang.String XML_URI
           
static java.lang.String XMLNS
           
static java.lang.String XMLNS_URI
           
 
Constructor Summary
XMLName(java.lang.String name)
           
XMLName(java.lang.String namespace, java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getName()
           
 java.lang.String getNamespace()
           
 int hashCode()
           
static java.lang.String standardPrefixToNamespace(java.lang.String prefix)
          Maps from a standard prefix to its namespace URI.
 java.lang.String toString()
           
 java.lang.String toString(Prefixer prefixer)
           
 java.lang.String toString(XMLWriter prefixer)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

XML_URI

public static final java.lang.String XML_URI
See Also:
Constant Field Values

XMLNS_URI

public static final java.lang.String XMLNS_URI
See Also:
Constant Field Values

XMLNS

public static final java.lang.String XMLNS
See Also:
Constant Field Values

NAMESPACE_TO_STANDARD_PREFIX

public static final java.util.Map NAMESPACE_TO_STANDARD_PREFIX
Maps from a namespace URI to a standard prefix which represents that URI. Such prefixes need not be declared; their associated URI is known implicitly. This Map is unmodifiable.


EMPTY_NAME

public static final XMLName EMPTY_NAME
Constructor Detail

XMLName

public XMLName(java.lang.String name)

XMLName

public XMLName(java.lang.String namespace,
               java.lang.String name)
Method Detail

getNamespace

public java.lang.String getNamespace()

getName

public java.lang.String getName()

toString

public java.lang.String toString()

toString

public java.lang.String toString(Prefixer prefixer)

toString

public java.lang.String toString(XMLWriter prefixer)
                          throws java.io.IOException
Throws:
java.io.IOException

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

standardPrefixToNamespace

public static java.lang.String standardPrefixToNamespace(java.lang.String prefix)
Maps from a standard prefix to its namespace URI. Such prefixes need not be declared; their associated URI is known implicitly.