com.caucho.xpath.pattern
Class NamespaceNode

java.lang.Object
  extended by com.caucho.xml.QAbstractNode
      extended by com.caucho.xpath.pattern.NamespaceNode
All Implemented Interfaces:
CauchoNode, java.io.Serializable, org.w3c.dom.Node

public class NamespaceNode
extends QAbstractNode
implements CauchoNode

A pseudo-node for handling the namespace:: axis.

See Also:
Serialized Form

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

NamespaceNode

public NamespaceNode(org.w3c.dom.Node parent,
                     NamespaceNode next,
                     java.lang.String prefix,
                     java.lang.String url)
Creates a new namespace node.

Method Detail

getNodeType

public short getNodeType()
Specified by:
getNodeType in interface org.w3c.dom.Node

getNodeName

public java.lang.String getNodeName()
Specified by:
getNodeName in interface org.w3c.dom.Node

getPrefix

public java.lang.String getPrefix()
Specified by:
getPrefix in interface CauchoNode
Specified by:
getPrefix in interface org.w3c.dom.Node
Overrides:
getPrefix in class QAbstractNode

setPrefix

public void setPrefix(java.lang.String prefix)
Specified by:
setPrefix in interface org.w3c.dom.Node
Overrides:
setPrefix in class QAbstractNode

supports

public boolean supports(java.lang.String feature,
                        java.lang.String version)
Description copied from class: QAbstractNode
Support the same and the implementation

Overrides:
supports in class QAbstractNode

getCanonicalName

public java.lang.String getCanonicalName()
Description copied from interface: CauchoNode
Returns the node's canonical name.

e.g. for foo:bar:baz, the prefix name might be '{/caucho/1.0}baz'

Specified by:
getCanonicalName in interface CauchoNode
Overrides:
getCanonicalName in class QAbstractNode

getLocalName

public java.lang.String getLocalName()
Specified by:
getLocalName in interface CauchoNode
Specified by:
getLocalName in interface org.w3c.dom.Node
Overrides:
getLocalName in class QAbstractNode

getNamespaceURI

public java.lang.String getNamespaceURI()
Specified by:
getNamespaceURI in interface CauchoNode
Specified by:
getNamespaceURI in interface org.w3c.dom.Node
Overrides:
getNamespaceURI in class QAbstractNode

getNodeValue

public java.lang.String getNodeValue()
Specified by:
getNodeValue in interface org.w3c.dom.Node
Overrides:
getNodeValue in class QAbstractNode

getParentNode

public org.w3c.dom.Node getParentNode()
Specified by:
getParentNode in interface org.w3c.dom.Node
Overrides:
getParentNode 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

setLocation

public void setLocation(java.lang.String filename,
                        int line,
                        int column)

getFilename

public java.lang.String getFilename()
Description copied from class: QAbstractNode
Returns the node's source filename.

Specified by:
getFilename in interface CauchoNode
Overrides:
getFilename in class QAbstractNode

getLine

public int getLine()
Description copied from class: QAbstractNode
Returns the node's source line.

Specified by:
getLine in interface CauchoNode
Overrides:
getLine in class QAbstractNode

getColumn

public int getColumn()
Description copied from interface: CauchoNode
Returns the source column of this node. p

Specified by:
getColumn in interface CauchoNode
Overrides:
getColumn in class QAbstractNode

getOwnerDocument

public org.w3c.dom.Document getOwnerDocument()
Description copied from class: QAbstractNode
Returns the owning document.

Specified by:
getOwnerDocument in interface org.w3c.dom.Node
Overrides:
getOwnerDocument 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()
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

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)
Specified by:
insertBefore in interface org.w3c.dom.Node
Overrides:
insertBefore in class QAbstractNode

replaceChild

public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
                                     org.w3c.dom.Node refChild)
Specified by:
replaceChild in interface org.w3c.dom.Node
Overrides:
replaceChild in class QAbstractNode

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

equals

public boolean equals(org.w3c.dom.Node arg,
                      boolean deep)
Overrides:
equals in class QAbstractNode

cloneNode

public org.w3c.dom.Node cloneNode(boolean deep)
Specified by:
cloneNode in interface org.w3c.dom.Node
Overrides:
cloneNode in class QAbstractNode

normalize

public void normalize()
Specified by:
normalize in interface org.w3c.dom.Node
Overrides:
normalize in class QAbstractNode

getTextValue

public java.lang.String getTextValue()
Description copied from interface: CauchoNode
Returns the text value of the node

Specified by:
getTextValue in interface CauchoNode
Overrides:
getTextValue in class QAbstractNode

checkValid

public boolean checkValid()
Description copied from interface: CauchoNode
For testing...

Specified by:
checkValid in interface CauchoNode
Overrides:
checkValid in class QAbstractNode

print

public void print(WriteStream out)
           throws java.io.IOException
Description copied from interface: CauchoNode
Prints the node to a stream

Specified by:
print in interface CauchoNode
Overrides:
print in class QAbstractNode
Throws:
java.io.IOException

printPretty

public void printPretty(WriteStream out)
                 throws java.io.IOException
Description copied from interface: CauchoNode
Pretty-prints the node to a stream

Specified by:
printPretty in interface CauchoNode
Overrides:
printPretty in class QAbstractNode
Throws:
java.io.IOException

printHtml

public void printHtml(WriteStream out)
               throws java.io.IOException
Description copied from interface: CauchoNode
Prints the node as html to a stream

Specified by:
printHtml in interface CauchoNode
Overrides:
printHtml in class QAbstractNode
Throws:
java.io.IOException

isSupported

public boolean isSupported(java.lang.String feature,
                           java.lang.String version)
Specified by:
isSupported in interface org.w3c.dom.Node
Overrides:
isSupported in class QAbstractNode

hasAttributes

public boolean hasAttributes()
Description copied from class: QAbstractNode
Returns true if the node has attributes.

Specified by:
hasAttributes in interface org.w3c.dom.Node
Overrides:
hasAttributes in class QAbstractNode

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object