|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public java.lang.String getLocalName()
e.g. for foo:bar:baz, the local name is 'baz'
public java.lang.String getPrefixName()
e.g. for foo:bar:baz, the prefix name is 'foo:bar'
public java.lang.String getNamespace()
e.g. for foo:bar:baz, the namespace might be '/caucho/1.0'
public java.lang.String getCanonicalName()
e.g. for foo:bar:baz, the prefix name might be '{/caucho/1.0}baz'
public java.lang.String getTextValue()
public java.lang.String getFilename()
public int getLine()
public int getColumn()
public void setLocation(java.lang.String filename, int line, int column)
public void print(WriteStream os) throws java.io.IOException
public void printPretty(WriteStream os) throws java.io.IOException
public void printHtml(WriteStream os) throws java.io.IOException
public boolean checkValid() throws java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |