DefaultNamespace implements a doubly linked node which
supports the parent relationship and is mutable. It is useful when returning
results from XPath expressions.
| Modifier and Type | Field and Description |
|---|---|
| private Element | parent
The parent of this node |
| Access | Constructor and Description |
|---|---|
| public | DefaultNamespace(String
is the prefix for this namespace prefix, String is the URI for this namespace uri)DOCUMENT ME! |
| public | DefaultNamespace(Element
is the parent element parent, String is the prefix for this namespace prefix, String is the URI for this namespace uri)DOCUMENT ME! |
| Modifier and Type | Method and Description |
|---|---|
| protected int | Returns: the hash code based on the qualified name and the URI of the namespace and the hashCode() of the parent element.Overrides org. |
| public boolean | Returns: DOCUMENT ME!DOCUMENT ME! object)Overrides org. |
| public Element | getParent()
Overrides org. Implements org.
|
| public int | |
| public boolean | isReadOnly()
Overrides org. Implements org.
|
| public void | setParent(Element
is the new parent of this node. parent)Overrides org. Implements org.
|
| public boolean | supportsParent()
Overrides org. Implements org.
|
| parent | back to summary |
|---|---|
| private Element parent The parent of this node | |
| DefaultNamespace | back to summary |
|---|---|
| public DefaultNamespace(String prefix, String uri) DOCUMENT ME! | |
| DefaultNamespace | back to summary |
|---|---|
| public DefaultNamespace(Element parent, String prefix, String uri) DOCUMENT ME! | |
| createHashCode | back to summary |
|---|---|
| protected int createHashCode() Overrides org. DOCUMENT ME!
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides org. Implements an identity based comparsion using the parent element as well as the prefix and URI
| |
| getParent | back to summary |
|---|---|
| public Element getParent() Overrides org. Implements org. Doc from org.
This method is an optional feature and may not be supported for all
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from org. DOCUMENT ME!
| |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() Overrides org. Implements org. Doc from org.
| |
| setParent | back to summary |
|---|---|
| public void setParent(Element parent) Overrides org. Implements org. Doc from org.
This method should only be called from inside an
| |
| supportsParent | back to summary |
|---|---|
| public boolean supportsParent() Overrides org. Implements org. Doc from org.
Some XML tree implementations are singly linked and only support downward navigation through children relationships. The default case is that both parent and children relationships are supported though for memory and performance reasons the parent relationship may not be supported.
| |