org.dom4j
public class Namespace extends AbstractNode
Namespace is a Flyweight Namespace that can be shared amongst
nodes.
Version: $Revision: 1.22 $
| Field Summary | |
|---|---|
| protected static NamespaceCache | CACHE Cache of Namespace instances |
| static Namespace | NO_NAMESPACE No Namespace present |
| static Namespace | XML_NAMESPACE XML Namespace |
| Constructor Summary | |
|---|---|
| Namespace(String prefix, String uri)
DOCUMENT ME!
| |
| Method Summary | |
|---|---|
| void | accept(Visitor visitor) |
| String | asXML() |
| protected int | createHashCode()
Factory method to create the hashcode allowing derived classes to change
the behaviour
|
| protected Node | createXPathResult(Element parent) |
| boolean | equals(Object object)
Checks whether this Namespace equals the given Namespace. |
| static Namespace | get(String prefix, String uri)
A helper method to return the Namespace instance for the given prefix and
URI
|
| static Namespace | get(String uri)
A helper method to return the Namespace instance for no prefix and the
URI
|
| short | getNodeType() |
| String | getPath(Element context) |
| String | getPrefix()
DOCUMENT ME!
|
| String | getStringValue() |
| String | getText() |
| String | getUniquePath(Element context) |
| String | getURI()
DOCUMENT ME!
|
| String | getXPathNameStep() |
| int | hashCode()
DOCUMENT ME!
|
| String | toString() |
Parameters: prefix is the prefix for this namespace uri is the URI for this namespace
Returns: DOCUMENT ME!
Parameters: object DOCUMENT ME!
Returns: DOCUMENT ME!
Parameters: prefix DOCUMENT ME! uri DOCUMENT ME!
Returns: an interned Namespace object
Parameters: uri DOCUMENT ME!
Returns: an interned Namespace object
Returns: the prefix for this Namespace.
Returns: the URI for this Namespace.
Returns: the hash code based on the qualified name and the URI of the namespace.