com.caucho.xml2
Class QNode
java.lang.Object
com.caucho.xml2.QAbstractNode
com.caucho.xml2.QNode
- All Implemented Interfaces:
- CauchoNode, java.io.Serializable, org.w3c.dom.Node
- Direct Known Subclasses:
- QAttr, QAttributedNode, QDocumentFragment, QDocumentType, QEntityReference, QProcessingInstruction
public abstract class QNode
- extends QAbstractNode
QNode represents any node that can have children.
- See Also:
- Serialized Form
| Fields inherited from interface org.w3c.dom.Node |
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 |
| Methods inherited from class com.caucho.xml2.QAbstractNode |
baseURI, cloneNode, compareDocumentPosition, compareTreePosition, getBaseURI, getCanonicalName, getColumn, getDependencyList, getFeature, getFilename, getInterface, getLine, getLocalName, getNamespaceURI, getNextContent, getOwnerDocument, getParentNode, getPrefix, getPreviousContent, getQName, getTextContent, getTextValue, getUserData, hasAttributes, hasContent, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespacePrefix, lookupNamespaceURI, lookupPrefix, print, printHtml, printPretty, setFeature, setLocation, setPrefix, setUserData, supports |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Node |
getNodeName, getNodeType |
_firstChild
protected QAbstractNode _firstChild
_lastChild
protected QAbstractNode _lastChild
QNode
protected QNode()
QNode
protected QNode(QDocument owner)
getNodeValue
public java.lang.String getNodeValue()
- Specified by:
getNodeValue in interface org.w3c.dom.Node- Overrides:
getNodeValue in class QAbstractNode
setNodeValue
public void setNodeValue(java.lang.String value)
- Specified by:
setNodeValue in interface org.w3c.dom.Node- Overrides:
setNodeValue in class QAbstractNode
getChildNodes
public org.w3c.dom.NodeList getChildNodes()
- Returns a node list of the children.
- Specified by:
getChildNodes in interface org.w3c.dom.Node- Overrides:
getChildNodes in class QAbstractNode
getFirstChild
public org.w3c.dom.Node getFirstChild()
- Specified by:
getFirstChild in interface org.w3c.dom.Node- Overrides:
getFirstChild in class QAbstractNode
getLastChild
public org.w3c.dom.Node getLastChild()
- Specified by:
getLastChild in interface org.w3c.dom.Node- Overrides:
getLastChild in class QAbstractNode
getPreviousSibling
public org.w3c.dom.Node getPreviousSibling()
- Specified by:
getPreviousSibling in interface org.w3c.dom.Node- Overrides:
getPreviousSibling in class QAbstractNode
getNextSibling
public org.w3c.dom.Node getNextSibling()
- Specified by:
getNextSibling in interface org.w3c.dom.Node- Overrides:
getNextSibling in class QAbstractNode
getAttributes
public org.w3c.dom.NamedNodeMap getAttributes()
- Specified by:
getAttributes in interface org.w3c.dom.Node- Overrides:
getAttributes in class QAbstractNode
insertBefore
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
throws org.w3c.dom.DOMException
- Specified by:
insertBefore in interface org.w3c.dom.Node- Overrides:
insertBefore in class QAbstractNode
- Throws:
org.w3c.dom.DOMException
replaceChild
public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
throws org.w3c.dom.DOMException
- Specified by:
replaceChild in interface org.w3c.dom.Node- Overrides:
replaceChild in class QAbstractNode
- Throws:
org.w3c.dom.DOMException
removeChild
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
throws org.w3c.dom.DOMException
- Specified by:
removeChild in interface org.w3c.dom.Node- Overrides:
removeChild in class QAbstractNode
- Throws:
org.w3c.dom.DOMException
appendChild
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newNode)
throws org.w3c.dom.DOMException
- Specified by:
appendChild in interface org.w3c.dom.Node- Overrides:
appendChild in class QAbstractNode
- Throws:
org.w3c.dom.DOMException
hasChildNodes
public boolean hasChildNodes()
- Specified by:
hasChildNodes in interface org.w3c.dom.Node- Overrides:
hasChildNodes in class QAbstractNode
setTextContent
public void setTextContent(java.lang.String content)
- Specified by:
setTextContent in interface org.w3c.dom.Node- Overrides:
setTextContent in class QAbstractNode
normalize
public void normalize()
- Specified by:
normalize in interface org.w3c.dom.Node- Overrides:
normalize in class QAbstractNode
checkValid
public boolean checkValid()
throws java.lang.Exception
- Description copied from interface:
CauchoNode
- For testing...
- Specified by:
checkValid in interface CauchoNode- Overrides:
checkValid in class QAbstractNode
- Throws:
java.lang.Exception
getNextPreorder
public QAbstractNode getNextPreorder()
- Overrides:
getNextPreorder in class QAbstractNode
equals
public boolean equals(java.lang.Object arg)
- Overrides:
equals in class java.lang.Object
equals
public boolean equals(org.w3c.dom.Node arg,
boolean deep)
- Overrides:
equals in class QAbstractNode