public class NamespaceNode extends QAbstractNode implements CauchoNode
L
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Constructor and Description |
---|
NamespaceNode(org.w3c.dom.Node parent,
NamespaceNode next,
java.lang.String prefix,
java.lang.String url)
Creates a new namespace node.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newNode) |
boolean |
checkValid()
For testing...
|
org.w3c.dom.Node |
cloneNode(boolean deep) |
boolean |
equals(org.w3c.dom.Node arg,
boolean deep) |
org.w3c.dom.NamedNodeMap |
getAttributes() |
java.lang.String |
getCanonicalName()
Returns the node's canonical name.
|
org.w3c.dom.NodeList |
getChildNodes() |
int |
getColumn()
Returns the source column of this node.
|
java.lang.String |
getFilename()
Returns the node's source filename.
|
org.w3c.dom.Node |
getFirstChild() |
org.w3c.dom.Node |
getLastChild() |
int |
getLine()
Returns the node's source line.
|
java.lang.String |
getLocalName() |
java.lang.String |
getNamespaceURI() |
org.w3c.dom.Node |
getNextSibling() |
java.lang.String |
getNodeName() |
short |
getNodeType() |
java.lang.String |
getNodeValue() |
org.w3c.dom.Document |
getOwnerDocument()
Returns the owning document.
|
org.w3c.dom.Node |
getParentNode() |
java.lang.String |
getPrefix() |
org.w3c.dom.Node |
getPreviousSibling() |
java.lang.String |
getTextValue()
Returns the text value of the node
|
boolean |
hasAttributes()
Returns true if the node has attributes.
|
boolean |
hasChildNodes() |
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild) |
boolean |
isSupported(java.lang.String feature,
java.lang.String version) |
void |
normalize() |
void |
print(WriteStream out)
Prints the node to a stream
|
void |
printHtml(WriteStream out)
Prints the node as html to a stream
|
void |
printPretty(WriteStream out)
Pretty-prints the node to a stream
|
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild) |
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild) |
void |
setLocation(java.lang.String filename,
int line,
int column) |
void |
setNodeValue(java.lang.String value) |
void |
setPrefix(java.lang.String prefix) |
boolean |
supports(java.lang.String feature,
java.lang.String version)
Support the same and the implementation
|
java.lang.String |
toString() |
baseURI, compareDocumentPosition, compareTreePosition, getBaseURI, getDependencyList, getFeature, getInterface, getNextContent, getNextPreorder, getPreviousContent, getQName, getTextContent, getUserData, hasContent, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespacePrefix, lookupNamespaceURI, lookupPrefix, setFeature, setLocation, setTextContent, setUserData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBaseURI, setLocation
public NamespaceNode(org.w3c.dom.Node parent, NamespaceNode next, java.lang.String prefix, java.lang.String url)
public short getNodeType()
getNodeType
in interface org.w3c.dom.Node
public java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
public java.lang.String getPrefix()
getPrefix
in interface CauchoNode
getPrefix
in interface org.w3c.dom.Node
getPrefix
in class QAbstractNode
public void setPrefix(java.lang.String prefix)
setPrefix
in interface org.w3c.dom.Node
setPrefix
in class QAbstractNode
public boolean supports(java.lang.String feature, java.lang.String version)
QAbstractNode
supports
in class QAbstractNode
public java.lang.String getCanonicalName()
CauchoNode
e.g. for foo:bar:baz, the prefix name might be '{/caucho/1.0}baz'
getCanonicalName
in interface CauchoNode
getCanonicalName
in class QAbstractNode
public java.lang.String getLocalName()
getLocalName
in interface CauchoNode
getLocalName
in interface org.w3c.dom.Node
getLocalName
in class QAbstractNode
public java.lang.String getNamespaceURI()
getNamespaceURI
in interface CauchoNode
getNamespaceURI
in interface org.w3c.dom.Node
getNamespaceURI
in class QAbstractNode
public java.lang.String getNodeValue()
getNodeValue
in interface org.w3c.dom.Node
getNodeValue
in class QAbstractNode
public org.w3c.dom.Node getParentNode()
getParentNode
in interface org.w3c.dom.Node
getParentNode
in class QAbstractNode
public org.w3c.dom.Node getPreviousSibling()
getPreviousSibling
in interface org.w3c.dom.Node
getPreviousSibling
in class QAbstractNode
public org.w3c.dom.Node getNextSibling()
getNextSibling
in interface org.w3c.dom.Node
getNextSibling
in class QAbstractNode
public void setLocation(java.lang.String filename, int line, int column)
public java.lang.String getFilename()
QAbstractNode
getFilename
in interface CauchoNode
getFilename
in class QAbstractNode
public int getLine()
QAbstractNode
getLine
in interface CauchoNode
getLine
in class QAbstractNode
public int getColumn()
CauchoNode
getColumn
in interface CauchoNode
getColumn
in class QAbstractNode
public org.w3c.dom.Document getOwnerDocument()
QAbstractNode
getOwnerDocument
in interface org.w3c.dom.Node
getOwnerDocument
in class QAbstractNode
public void setNodeValue(java.lang.String value)
setNodeValue
in interface org.w3c.dom.Node
setNodeValue
in class QAbstractNode
public org.w3c.dom.NodeList getChildNodes()
getChildNodes
in interface org.w3c.dom.Node
getChildNodes
in class QAbstractNode
public org.w3c.dom.Node getFirstChild()
getFirstChild
in interface org.w3c.dom.Node
getFirstChild
in class QAbstractNode
public org.w3c.dom.Node getLastChild()
getLastChild
in interface org.w3c.dom.Node
getLastChild
in class QAbstractNode
public org.w3c.dom.NamedNodeMap getAttributes()
getAttributes
in interface org.w3c.dom.Node
getAttributes
in class QAbstractNode
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild)
insertBefore
in interface org.w3c.dom.Node
insertBefore
in class QAbstractNode
public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild)
replaceChild
in interface org.w3c.dom.Node
replaceChild
in class QAbstractNode
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
removeChild
in interface org.w3c.dom.Node
removeChild
in class QAbstractNode
org.w3c.dom.DOMException
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newNode) throws org.w3c.dom.DOMException
appendChild
in interface org.w3c.dom.Node
appendChild
in class QAbstractNode
org.w3c.dom.DOMException
public boolean hasChildNodes()
hasChildNodes
in interface org.w3c.dom.Node
hasChildNodes
in class QAbstractNode
public boolean equals(org.w3c.dom.Node arg, boolean deep)
equals
in class QAbstractNode
public org.w3c.dom.Node cloneNode(boolean deep)
cloneNode
in interface org.w3c.dom.Node
cloneNode
in class QAbstractNode
public void normalize()
normalize
in interface org.w3c.dom.Node
normalize
in class QAbstractNode
public java.lang.String getTextValue()
CauchoNode
getTextValue
in interface CauchoNode
getTextValue
in class QAbstractNode
public boolean checkValid()
CauchoNode
checkValid
in interface CauchoNode
checkValid
in class QAbstractNode
public void print(WriteStream out) throws java.io.IOException
CauchoNode
print
in interface CauchoNode
print
in class QAbstractNode
java.io.IOException
public void printPretty(WriteStream out) throws java.io.IOException
CauchoNode
printPretty
in interface CauchoNode
printPretty
in class QAbstractNode
java.io.IOException
public void printHtml(WriteStream out) throws java.io.IOException
CauchoNode
printHtml
in interface CauchoNode
printHtml
in class QAbstractNode
java.io.IOException
public boolean isSupported(java.lang.String feature, java.lang.String version)
isSupported
in interface org.w3c.dom.Node
isSupported
in class QAbstractNode
public boolean hasAttributes()
QAbstractNode
hasAttributes
in interface org.w3c.dom.Node
hasAttributes
in class QAbstractNode
public java.lang.String toString()
toString
in class java.lang.Object