|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.xml.QAbstractNode
public abstract class QAbstractNode
QAbstractNode is an abstract implementation for any DOM node.
| Field Summary | |
|---|---|
protected static L10N |
L
|
| 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 |
| Constructor Summary | |
|---|---|
protected |
QAbstractNode()
|
protected |
QAbstractNode(QDocument owner)
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Node |
|---|
getNodeName, getNodeType |
| Field Detail |
|---|
protected static L10N L
| Constructor Detail |
|---|
protected QAbstractNode()
protected QAbstractNode(QDocument owner)
| Method Detail |
|---|
public void setLocation(java.lang.String systemId,
java.lang.String filename,
int line,
int column)
CauchoNode
setLocation 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()
CauchoNode
getColumn in interface CauchoNodepublic org.w3c.dom.Document getOwnerDocument()
getOwnerDocument in interface org.w3c.dom.Node
public boolean isSupported(java.lang.String feature,
java.lang.String version)
isSupported in interface org.w3c.dom.Node
public java.lang.Object getFeature(java.lang.String feature,
java.lang.String version)
getFeature in interface org.w3c.dom.Node
public 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.Node
public 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.Node
public 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.DOMException
public 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.DOMException
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
throws org.w3c.dom.DOMException
removeChild in interface org.w3c.dom.Nodeorg.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.Nodeorg.w3c.dom.DOMExceptionpublic boolean hasChildNodes()
hasChildNodes in interface org.w3c.dom.Node
public 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()
CauchoNode
getTextValue in interface CauchoNode
public 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.DOMException
public 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.Node
public 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
CauchoNode
checkValid in interface CauchoNodejava.lang.Exception
public void print(WriteStream out)
throws java.io.IOException
CauchoNode
print in interface CauchoNodejava.io.IOException
public void printPretty(WriteStream out)
throws java.io.IOException
CauchoNode
printPretty in interface CauchoNodejava.io.IOException
public void printHtml(WriteStream out)
throws java.io.IOException
CauchoNode
printHtml in interface CauchoNodejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||