public class NamespaceNode extends QAbstractNode implements CauchoNode
LATTRIBUTE_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, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBaseURI, setLocationpublic 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.Nodepublic java.lang.String getNodeName()
getNodeName in interface org.w3c.dom.Nodepublic java.lang.String getPrefix()
getPrefix in interface CauchoNodegetPrefix in interface org.w3c.dom.NodegetPrefix in class QAbstractNodepublic void setPrefix(java.lang.String prefix)
setPrefix in interface org.w3c.dom.NodesetPrefix in class QAbstractNodepublic boolean supports(java.lang.String feature,
java.lang.String version)
QAbstractNodesupports in class QAbstractNodepublic java.lang.String getCanonicalName()
CauchoNodee.g. for foo:bar:baz, the prefix name might be '{/caucho/1.0}baz'
getCanonicalName in interface CauchoNodegetCanonicalName in class QAbstractNodepublic java.lang.String getLocalName()
getLocalName in interface CauchoNodegetLocalName in interface org.w3c.dom.NodegetLocalName in class QAbstractNodepublic java.lang.String getNamespaceURI()
getNamespaceURI in interface CauchoNodegetNamespaceURI in interface org.w3c.dom.NodegetNamespaceURI in class QAbstractNodepublic java.lang.String getNodeValue()
getNodeValue in interface org.w3c.dom.NodegetNodeValue in class QAbstractNodepublic org.w3c.dom.Node getParentNode()
getParentNode in interface org.w3c.dom.NodegetParentNode in class QAbstractNodepublic org.w3c.dom.Node getPreviousSibling()
getPreviousSibling in interface org.w3c.dom.NodegetPreviousSibling in class QAbstractNodepublic org.w3c.dom.Node getNextSibling()
getNextSibling in interface org.w3c.dom.NodegetNextSibling in class QAbstractNodepublic void setLocation(java.lang.String filename,
int line,
int column)
public java.lang.String getFilename()
QAbstractNodegetFilename in interface CauchoNodegetFilename in class QAbstractNodepublic int getLine()
QAbstractNodegetLine in interface CauchoNodegetLine in class QAbstractNodepublic int getColumn()
CauchoNodegetColumn in interface CauchoNodegetColumn in class QAbstractNodepublic org.w3c.dom.Document getOwnerDocument()
QAbstractNodegetOwnerDocument in interface org.w3c.dom.NodegetOwnerDocument in class QAbstractNodepublic void setNodeValue(java.lang.String value)
setNodeValue in interface org.w3c.dom.NodesetNodeValue in class QAbstractNodepublic org.w3c.dom.NodeList getChildNodes()
getChildNodes in interface org.w3c.dom.NodegetChildNodes in class QAbstractNodepublic org.w3c.dom.Node getFirstChild()
getFirstChild in interface org.w3c.dom.NodegetFirstChild in class QAbstractNodepublic org.w3c.dom.Node getLastChild()
getLastChild in interface org.w3c.dom.NodegetLastChild in class QAbstractNodepublic org.w3c.dom.NamedNodeMap getAttributes()
getAttributes in interface org.w3c.dom.NodegetAttributes in class QAbstractNodepublic org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
insertBefore in interface org.w3c.dom.NodeinsertBefore in class QAbstractNodepublic org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
replaceChild in interface org.w3c.dom.NodereplaceChild in class QAbstractNodepublic org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
throws org.w3c.dom.DOMException
removeChild in interface org.w3c.dom.NoderemoveChild in class QAbstractNodeorg.w3c.dom.DOMExceptionpublic org.w3c.dom.Node appendChild(org.w3c.dom.Node newNode)
throws org.w3c.dom.DOMException
appendChild in interface org.w3c.dom.NodeappendChild in class QAbstractNodeorg.w3c.dom.DOMExceptionpublic boolean hasChildNodes()
hasChildNodes in interface org.w3c.dom.NodehasChildNodes in class QAbstractNodepublic boolean equals(org.w3c.dom.Node arg,
boolean deep)
equals in class QAbstractNodepublic org.w3c.dom.Node cloneNode(boolean deep)
cloneNode in interface org.w3c.dom.NodecloneNode in class QAbstractNodepublic void normalize()
normalize in interface org.w3c.dom.Nodenormalize in class QAbstractNodepublic java.lang.String getTextValue()
CauchoNodegetTextValue in interface CauchoNodegetTextValue in class QAbstractNodepublic boolean checkValid()
CauchoNodecheckValid in interface CauchoNodecheckValid in class QAbstractNodepublic void print(WriteStream out) throws java.io.IOException
CauchoNodeprint in interface CauchoNodeprint in class QAbstractNodejava.io.IOExceptionpublic void printPretty(WriteStream out) throws java.io.IOException
CauchoNodeprintPretty in interface CauchoNodeprintPretty in class QAbstractNodejava.io.IOExceptionpublic void printHtml(WriteStream out) throws java.io.IOException
CauchoNodeprintHtml in interface CauchoNodeprintHtml in class QAbstractNodejava.io.IOExceptionpublic boolean isSupported(java.lang.String feature,
java.lang.String version)
isSupported in interface org.w3c.dom.NodeisSupported in class QAbstractNodepublic boolean hasAttributes()
QAbstractNodehasAttributes in interface org.w3c.dom.NodehasAttributes in class QAbstractNodepublic java.lang.String toString()
toString in class java.lang.Object