com.caucho.xml
Interface CauchoNode

All Superinterfaces:
org.w3c.dom.Node
All Known Subinterfaces:
CauchoDocument, CauchoElement
All Known Implementing Classes:
NamespaceNode, QAbstractNode, QAttr, QAttributedNode, QCdata, QComment, QDocument, QDocumentFragment, QDocumentType, QElement, QEntityReference, QNode, QProcessingInstruction, QText

public interface CauchoNode
extends org.w3c.dom.Node

CauchoNode extends the DOM, providing namespace support and input file support.

Application can print the filename and line number where the error occurred.


Field Summary
 
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
 
Method Summary
 boolean checkValid()
          For testing...
 java.lang.String getBaseURI()
          Returns the source uri of this node.
 java.lang.String getCanonicalName()
          Returns the node's canonical name.
 int getColumn()
          Returns the source column of this node.
 java.lang.String getFilename()
          Returns the source filename of this node.
 int getLine()
          Returns the source line of this node.
 java.lang.String getLocalName()
           
 java.lang.String getNamespaceURI()
           
 java.lang.String getPrefix()
           
 java.lang.String getTextValue()
          Returns the text value of the node
 void print(WriteStream os)
          Prints the node to a stream
 void printHtml(WriteStream os)
          Prints the node as html to a stream
 void printPretty(WriteStream os)
          Pretty-prints the node to a stream
 void setLocation(java.lang.String systemId, java.lang.String filename, int line, int column)
          Sets the location
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 

Method Detail

getNamespaceURI

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

getPrefix

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

getLocalName

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

getCanonicalName

java.lang.String getCanonicalName()
Returns the node's canonical name.

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


getTextValue

java.lang.String getTextValue()
Returns the text value of the node


getFilename

java.lang.String getFilename()
Returns the source filename of this node.


getBaseURI

java.lang.String getBaseURI()
Returns the source uri of this node.

Specified by:
getBaseURI in interface org.w3c.dom.Node

getLine

int getLine()
Returns the source line of this node.


getColumn

int getColumn()
Returns the source column of this node. p


setLocation

void setLocation(java.lang.String systemId,
                 java.lang.String filename,
                 int line,
                 int column)
Sets the location


print

void print(WriteStream os)
           throws java.io.IOException
Prints the node to a stream

Throws:
java.io.IOException

printPretty

void printPretty(WriteStream os)
                 throws java.io.IOException
Pretty-prints the node to a stream

Throws:
java.io.IOException

printHtml

void printHtml(WriteStream os)
               throws java.io.IOException
Prints the node as html to a stream

Throws:
java.io.IOException

checkValid

boolean checkValid()
                   throws java.lang.Exception
For testing...

Throws:
java.lang.Exception