Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.caucho.xml
Interface CauchoNode

All Superinterfaces:
  Node

All Known Subinterfaces:
  CauchoDocument, CauchoElement

All Known Implementing Classes:
  com.caucho.xml.QAbstractNode

public interface CauchoNode
extends Node

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

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

Fields inherited from interface org.w3c.dom.Node
`ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, 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` | `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()` Returns the local name of a node.
`java.lang.String` | `getNamespace()` Returns the node's namespace URL.
`java.lang.String` | `getPrefixName()` Returns the prefix name of a node.
`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 filename, int line, int column)` Sets the location

Methods inherited from interface org.w3c.dom.Node
`appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, removeChild, replaceChild, setNodeValue`

Method Detail

### getLocalName

    public java.lang.String getLocalName()

  Returns the local name of a node.

  e.g. for foo:bar:baz, the local name is 'baz'

### getPrefixName

    public java.lang.String getPrefixName()

  Returns the prefix name of a node.

  e.g. for foo:bar:baz, the prefix name is 'foo:bar'

### getNamespace

    public java.lang.String getNamespace()

  Returns the node's namespace URL.

  e.g. for foo:bar:baz, the namespace might be '/caucho/1.0'

### getCanonicalName

    public 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

    public java.lang.String getTextValue()

  Returns the text value of the node

### getFilename

    public java.lang.String getFilename()

  Returns the source filename of this node.

### getLine

    public int getLine()

  Returns the source line of this node.

### getColumn

    public int getColumn()

  Returns the source column of this node.

### setLocation

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

  Sets the location

### print

    public void print(WriteStream os)
               throws java.io.IOException

  Prints the node to a stream

### printPretty

    public void printPretty(WriteStream os)
                     throws java.io.IOException

  Pretty-prints the node to a stream

### printHtml

    public void printHtml(WriteStream os)
                   throws java.io.IOException

  Prints the node as html to a stream

### checkValid

    public boolean checkValid()
                       throws java.lang.Exception

  For testing...

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD