|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.xml.QAbstractNode
com.caucho.xpath.pattern.NamespaceNode
public class NamespaceNode
A pseudo-node for handling the namespace:: axis.
| Field Summary |
|---|
| Fields inherited from class com.caucho.xml.QAbstractNode |
|---|
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 | |
|---|---|
NamespaceNode(org.w3c.dom.Node parent,
NamespaceNode next,
java.lang.String prefix,
java.lang.String url)
Creates a new namespace node. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class com.caucho.xml.QAbstractNode |
|---|
baseURI, compareDocumentPosition, compareTreePosition, getBaseURI, getDependencyList, getFeature, getInterface, getNextContent, getNextPreorder, getPreviousContent, getQName, getTextContent, getUserData, hasContent, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespacePrefix, lookupNamespaceURI, lookupPrefix, setFeature, setLocation, setTextContent, setUserData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.caucho.xml.CauchoNode |
|---|
getBaseURI, setLocation |
| Methods inherited from interface org.w3c.dom.Node |
|---|
compareDocumentPosition, getFeature, getTextContent, getUserData, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData |
| Constructor Detail |
|---|
public NamespaceNode(org.w3c.dom.Node parent,
NamespaceNode next,
java.lang.String prefix,
java.lang.String url)
| Method Detail |
|---|
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 QAbstractNode
public boolean supports(java.lang.String feature,
java.lang.String version)
QAbstractNode
supports 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 QAbstractNode
public void setLocation(java.lang.String filename,
int line,
int column)
public java.lang.String getFilename()
QAbstractNode
getFilename in interface CauchoNodegetFilename in class QAbstractNodepublic int getLine()
QAbstractNode
getLine in interface CauchoNodegetLine in class QAbstractNodepublic int getColumn()
CauchoNode
getColumn in interface CauchoNodegetColumn in class QAbstractNodepublic org.w3c.dom.Document getOwnerDocument()
QAbstractNode
getOwnerDocument 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 QAbstractNode
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
insertBefore in interface org.w3c.dom.NodeinsertBefore 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.NodereplaceChild 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.NoderemoveChild in class QAbstractNodeorg.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.NodeappendChild in class QAbstractNodeorg.w3c.dom.DOMExceptionpublic boolean hasChildNodes()
hasChildNodes in interface org.w3c.dom.NodehasChildNodes in class QAbstractNode
public 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()
CauchoNode
getTextValue in interface CauchoNodegetTextValue in class QAbstractNodepublic boolean checkValid()
CauchoNode
checkValid in interface CauchoNodecheckValid in class QAbstractNode
public void print(WriteStream out)
throws java.io.IOException
CauchoNode
print in interface CauchoNodeprint in class QAbstractNodejava.io.IOException
public void printPretty(WriteStream out)
throws java.io.IOException
CauchoNode
printPretty in interface CauchoNodeprintPretty in class QAbstractNodejava.io.IOException
public void printHtml(WriteStream out)
throws java.io.IOException
CauchoNode
printHtml in interface CauchoNodeprintHtml in class QAbstractNodejava.io.IOException
public boolean isSupported(java.lang.String feature,
java.lang.String version)
isSupported in interface org.w3c.dom.NodeisSupported in class QAbstractNodepublic boolean hasAttributes()
QAbstractNode
hasAttributes in interface org.w3c.dom.NodehasAttributes in class QAbstractNodepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||