|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xml.dom.NodeImpl com.novell.xml.dom.NamespaceImpl
DOM extension class that implements an XPath namespace node
Field Summary | |
protected NamespaceName |
namespaceName
|
protected Element |
ownerElement
|
Fields inherited from class com.novell.xml.dom.NodeImpl |
allowedChildren, baseURI, changeCount, document, documentOrderVal, expandedName, firstChild, lastChild, localName, namespaceURI, nextOrderVal, nextSibling, nodeName, nodeValue, parentNode, prefix, previousSibling, toStringSerializes, xmlnsPrefix, xmlPrefix, xpathBehavior |
Fields inherited from interface com.novell.xml.dom.Namespace |
NAMESPACE_NODE |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
protected |
NamespaceImpl(DocumentImpl owner,
String prefix,
String uri)
Construct a namespace node instance. |
Method Summary | |
String |
getBaseURI()
Return the base URI string for this node. |
NamespaceName |
getNamespaceName()
Return the NamespaceName object for this namespace node.
|
short |
getNodeType()
A code representing the type of the underlying object, as defined above. |
String |
getNodeValue()
The value of this node, depending on its type; see the table above. |
Node |
getParentNode()
The parent of this node. |
void |
setOwningElement(Element parent)
Set the parent of this namespace node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getOwnerDocument, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Field Detail |
protected Element ownerElement
protected NamespaceName namespaceName
Constructor Detail |
protected NamespaceImpl(DocumentImpl owner, String prefix, String uri)
prefix
- The namespace declaration prefix. This is returned by getNodeName()
uri
- The namespace uri. This is returned by getNodeValue()
Method Detail |
public short getNodeType()
getNodeType
in interface Node
getNodeType
in class NodeImpl
public Node getParentNode()
Document
,
DocumentFragment
, and Attr
may have a parent.
However, if a node has just been created and not yet added to the tree,
or if it has been removed from the tree, this is null
.
getParentNode
in interface Node
getParentNode
in class NodeImpl
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
getNodeValue
in class NodeImpl
DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
DOMException
- DOMSTRING_SIZE_ERR: Raised when it would return more characters than
fit in a DOMString
variable on the implementation
platform.public void setOwningElement(Element parent)
parent
- The owning Element of this namespace nodepublic NamespaceName getNamespaceName()
NamespaceName
object for this namespace node.
This should generally be used in preference to getNodeValue()
(which
returns the string value of the uri) because NamespaceName
objects
can be compared much more efficiently than can strings.
getNamespaceName
in interface Namespace
NamespaceName
of this namespace nodepublic String getBaseURI()
null
if the base URI
has not been set for any node in this nodes chain of ancestors.
getBaseURI
in class NodeImpl
null
if no base URI
has been set for this node or one of its ancestors.NodeImpl.setBaseURI(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |