public abstract class QAbstractNode extends java.lang.Object implements CauchoNode, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static L10N |
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| Modifier | Constructor and Description |
|---|---|
protected |
QAbstractNode() |
protected |
QAbstractNode(QDocument owner) |
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newNode) |
static java.lang.String |
baseURI(org.w3c.dom.Node node)
Returns the base URI
|
boolean |
checkValid()
For testing...
|
org.w3c.dom.Node |
cloneNode(boolean deep) |
short |
compareDocumentPosition(org.w3c.dom.Node node)
Compares the document position
|
short |
compareTreePosition(org.w3c.dom.Node other) |
boolean |
equals(org.w3c.dom.Node arg,
boolean deep) |
org.w3c.dom.NamedNodeMap |
getAttributes() |
java.lang.String |
getBaseURI()
Returns the base URI of the node.
|
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.util.ArrayList<Depend> |
getDependencyList() |
java.lang.Object |
getFeature(java.lang.String feature,
java.lang.String version)
Returns a feature value.
|
java.lang.String |
getFilename()
Returns the node's source filename.
|
org.w3c.dom.Node |
getFirstChild() |
org.w3c.dom.Node |
getInterface(java.lang.String feature) |
org.w3c.dom.Node |
getLastChild() |
int |
getLine()
Returns the node's source line.
|
java.lang.String |
getLocalName() |
java.lang.String |
getNamespaceURI() |
QAbstractNode |
getNextContent() |
QAbstractNode |
getNextPreorder() |
org.w3c.dom.Node |
getNextSibling() |
java.lang.String |
getNodeValue() |
org.w3c.dom.Document |
getOwnerDocument()
Returns the owning document.
|
org.w3c.dom.Node |
getParentNode() |
java.lang.String |
getPrefix() |
QAbstractNode |
getPreviousContent() |
org.w3c.dom.Node |
getPreviousSibling() |
QName |
getQName() |
java.lang.String |
getTextContent() |
java.lang.String |
getTextValue()
Returns the text value of the node
|
java.lang.Object |
getUserData(java.lang.String data) |
boolean |
hasAttributes()
Returns true if the node has attributes.
|
boolean |
hasChildNodes() |
boolean |
hasContent() |
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild) |
boolean |
isDefaultNamespace(java.lang.String namespaceURI) |
boolean |
isEqualNode(org.w3c.dom.Node arg) |
boolean |
isSameNode(org.w3c.dom.Node other) |
boolean |
isSupported(java.lang.String feature,
java.lang.String version) |
java.lang.String |
lookupNamespacePrefix(java.lang.String namespaceURI,
boolean useDefault) |
java.lang.String |
lookupNamespaceURI(java.lang.String prefix) |
java.lang.String |
lookupPrefix(java.lang.String feature)
Looks up a prefix value.
|
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 |
setFeature(java.lang.String feature,
boolean value)
Sets a feature value.
|
void |
setLocation(java.lang.String systemId,
java.lang.String filename,
int line,
int column)
Sets the location
|
void |
setNodeValue(java.lang.String value) |
void |
setPrefix(java.lang.String prefix) |
void |
setTextContent(java.lang.String textContent) |
java.lang.Object |
setUserData(java.lang.String key,
java.lang.Object value,
org.w3c.dom.UserDataHandler userData) |
boolean |
supports(java.lang.String feature,
java.lang.String version)
Support the same and the implementation
|
protected static L10N L
protected QAbstractNode()
protected QAbstractNode(QDocument owner)
public void setLocation(java.lang.String systemId,
java.lang.String filename,
int line,
int column)
CauchoNodesetLocation in interface CauchoNodepublic java.lang.String getFilename()
getFilename in interface CauchoNodepublic java.lang.String getBaseURI()
getBaseURI in interface CauchoNodegetBaseURI in interface org.w3c.dom.Nodepublic static java.lang.String baseURI(org.w3c.dom.Node node)
public int getLine()
getLine in interface CauchoNodepublic int getColumn()
CauchoNodegetColumn in interface CauchoNodepublic org.w3c.dom.Document getOwnerDocument()
getOwnerDocument in interface org.w3c.dom.Nodepublic boolean isSupported(java.lang.String feature,
java.lang.String version)
isSupported in interface org.w3c.dom.Nodepublic java.lang.Object getFeature(java.lang.String feature,
java.lang.String version)
getFeature in interface org.w3c.dom.Nodepublic void setFeature(java.lang.String feature,
boolean value)
public short compareDocumentPosition(org.w3c.dom.Node node)
compareDocumentPosition in interface org.w3c.dom.Nodepublic java.lang.String lookupPrefix(java.lang.String feature)
lookupPrefix in interface org.w3c.dom.Nodepublic boolean hasAttributes()
hasAttributes in interface org.w3c.dom.Nodepublic java.lang.String getPrefix()
getPrefix in interface CauchoNodegetPrefix in interface org.w3c.dom.Nodepublic void setPrefix(java.lang.String prefix)
setPrefix in interface org.w3c.dom.Nodepublic java.lang.Object setUserData(java.lang.String key,
java.lang.Object value,
org.w3c.dom.UserDataHandler userData)
setUserData in interface org.w3c.dom.Nodepublic java.lang.Object getUserData(java.lang.String data)
getUserData in interface org.w3c.dom.Nodepublic java.lang.String getCanonicalName()
CauchoNodee.g. for foo:bar:baz, the prefix name might be '{/caucho/1.0}baz'
getCanonicalName in interface CauchoNodepublic java.lang.String getLocalName()
getLocalName in interface CauchoNodegetLocalName in interface org.w3c.dom.Nodepublic java.lang.String getNamespaceURI()
getNamespaceURI in interface CauchoNodegetNamespaceURI in interface org.w3c.dom.Nodepublic QName getQName()
public java.lang.String getNodeValue()
getNodeValue in interface org.w3c.dom.Nodepublic void setNodeValue(java.lang.String value)
setNodeValue in interface org.w3c.dom.Nodepublic org.w3c.dom.Node getParentNode()
getParentNode in interface org.w3c.dom.Nodepublic org.w3c.dom.NodeList getChildNodes()
getChildNodes in interface org.w3c.dom.Nodepublic org.w3c.dom.Node getFirstChild()
getFirstChild in interface org.w3c.dom.Nodepublic org.w3c.dom.Node getLastChild()
getLastChild in interface org.w3c.dom.Nodepublic org.w3c.dom.Node getPreviousSibling()
getPreviousSibling in interface org.w3c.dom.Nodepublic org.w3c.dom.Node getNextSibling()
getNextSibling in interface org.w3c.dom.Nodepublic org.w3c.dom.NamedNodeMap getAttributes()
getAttributes in interface org.w3c.dom.Nodepublic org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
throws org.w3c.dom.DOMException
insertBefore in interface org.w3c.dom.Nodeorg.w3c.dom.DOMExceptionpublic org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
throws org.w3c.dom.DOMException
replaceChild in interface org.w3c.dom.Nodeorg.w3c.dom.DOMExceptionpublic org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
throws org.w3c.dom.DOMException
removeChild in interface org.w3c.dom.Nodeorg.w3c.dom.DOMExceptionpublic org.w3c.dom.Node appendChild(org.w3c.dom.Node newNode)
throws org.w3c.dom.DOMException
appendChild in interface org.w3c.dom.Nodeorg.w3c.dom.DOMExceptionpublic boolean hasChildNodes()
hasChildNodes in interface org.w3c.dom.Nodepublic boolean equals(org.w3c.dom.Node arg,
boolean deep)
public QAbstractNode getNextPreorder()
public boolean hasContent()
public QAbstractNode getNextContent()
public QAbstractNode getPreviousContent()
public java.lang.String getTextValue()
CauchoNodegetTextValue in interface CauchoNodepublic boolean supports(java.lang.String feature,
java.lang.String version)
public void normalize()
normalize in interface org.w3c.dom.Nodepublic org.w3c.dom.Node cloneNode(boolean deep)
cloneNode in interface org.w3c.dom.Nodepublic short compareTreePosition(org.w3c.dom.Node other)
public java.lang.String getTextContent()
throws org.w3c.dom.DOMException
getTextContent in interface org.w3c.dom.Nodeorg.w3c.dom.DOMExceptionpublic void setTextContent(java.lang.String textContent)
throws org.w3c.dom.DOMException
setTextContent in interface org.w3c.dom.Nodeorg.w3c.dom.DOMExceptionpublic boolean isSameNode(org.w3c.dom.Node other)
isSameNode in interface org.w3c.dom.Nodepublic java.lang.String lookupNamespacePrefix(java.lang.String namespaceURI,
boolean useDefault)
public boolean isDefaultNamespace(java.lang.String namespaceURI)
isDefaultNamespace in interface org.w3c.dom.Nodepublic java.lang.String lookupNamespaceURI(java.lang.String prefix)
lookupNamespaceURI in interface org.w3c.dom.Nodepublic boolean isEqualNode(org.w3c.dom.Node arg)
isEqualNode in interface org.w3c.dom.Nodepublic org.w3c.dom.Node getInterface(java.lang.String feature)
public java.util.ArrayList<Depend> getDependencyList()
public boolean checkValid()
throws java.lang.Exception
CauchoNodecheckValid in interface CauchoNodejava.lang.Exceptionpublic void print(WriteStream out) throws java.io.IOException
CauchoNodeprint in interface CauchoNodejava.io.IOExceptionpublic void printPretty(WriteStream out) throws java.io.IOException
CauchoNodeprintPretty in interface CauchoNodejava.io.IOExceptionpublic void printHtml(WriteStream out) throws java.io.IOException
CauchoNodeprintHtml in interface CauchoNodejava.io.IOException