|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xsl.result.DOMResultHandler
A result handler that builds a DOM Level 1 result tree.
Field Summary | |
protected Node |
currentNode
The node being built; either the document node or an element node. |
Constructor Summary | |
DOMResultHandler(Document document)
Constructs a new DOM result handler that builds the specified document node. |
Method Summary | |
void |
attribute(String name,
String value)
Receive notification of an attribute. |
void |
characters(String data)
Receive notification of character data. |
void |
comment(String value)
Receive notification of a comment. |
void |
endDocument()
Receive notification of the end of a document. |
void |
endElement(String name)
Receive notification of the end of an element. |
Document |
getDocument()
Return the Document object used for this handler |
void |
namespace(String name,
NamespaceName value)
Receive notification of a namespace node. |
void |
processingInstruction(String target,
String value)
Receive notification of a processing instruction. |
void |
startDocument()
Receive notification of the beginning of a document. |
void |
startElement(String name,
String namespaceURI)
Receive notification of the beginning of an element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Node currentNode
Constructor Detail |
public DOMResultHandler(Document document)
document
- the result document to be builtMethod Detail |
public Document getDocument()
getDocument
in interface DOMResult
public void startDocument() throws ResultException
ResultHandler
startDocument
in interface ResultHandler
ResultException
- if an implementation-dependent error occurspublic void endDocument() throws ResultException
ResultHandler
endDocument
in interface ResultHandler
ResultException
- if an implementation-dependent error occurspublic void startElement(String name, String namespaceURI) throws IllegalNameException, IllegalNodeException, ResultException
ResultHandler
startElement
in interface ResultHandler
name
- the element's namenamespaceURI
- the element's namespace uri
IllegalNameException
- if the specified element name is illegal
IllegalNodeException
- if the current node cannot contain elements
ResultException
- if an implementation-dependent error occurspublic void endElement(String name) throws ResultException
ResultHandler
endElement
in interface ResultHandler
ResultException
- if an implementation-dependent error occurspublic void attribute(String name, String value) throws AttributeAfterChildException, IllegalNameException, IllegalNodeException, ResultException
ResultHandler
attribute
in interface ResultHandler
name
- the attribute's namevalue
- the attribute's value
IllegalNodeException
- if the current node is not an element
AttributeAfterChildException
- if the current node is an element with children
(attributes cannot be added to an element after children
have been added to it)
IllegalNameException
- if the specified attribute name is illegal
ResultException
- if an implementation-dependent error occurspublic void characters(String data) throws IllegalNodeException, ResultException
ResultHandler
characters
in interface ResultHandler
data
- the character data
ResultException
- if an implementation-dependent error occurs
IllegalNodeException
- if the current node cannot contain character datapublic void processingInstruction(String target, String value) throws IllegalNameException, IllegalNodeException, ResultException
ResultHandler
processingInstruction
in interface ResultHandler
target
- the processing instruction's targetvalue
- the processing instruction's value, or null
if there is no value
ResultException
- if an implementation-dependent error occurs
IllegalNameException
- if the specified target name is illegal
IllegalNodeException
- if the current node cannot contain processing
instructionspublic void comment(String value) throws IllegalNodeException, ResultException
ResultHandler
comment
in interface ResultHandler
value
- the comment's value
IllegalNodeException
- if the current node cannot contain comments
ResultException
- if an implementation-dependent error occurspublic void namespace(String name, NamespaceName value) throws IllegalNodeException, ResultException
ResultHandler
namespace
in interface ResultHandler
name
- the namespace prefixvalue
- the namespace name (URI)
IllegalNodeException
- if the current node cannot contain namespaces
ResultException
- if an implementation-dependent error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |