com.openharbor.beck.xml
Class XMLName
java.lang.Object
com.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.
Constructor Summary |
XMLName(java.lang.String name)
|
XMLName(java.lang.String namespace,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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
XMLName
public XMLName(java.lang.String name)
XMLName
public XMLName(java.lang.String namespace,
java.lang.String name)
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.