|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.skaringa.javaxml.handler.AbstractDocumentOutputHandler
com.skaringa.javaxml.handler.dom.DOMOutputHandler
public final class DOMOutputHandler
A concrete DocumentOutputHandlerInterface. It writes the output events to a DOM tree. It is used for serialization of Java objects into XML documents.
| Constructor Summary | |
|---|---|
DOMOutputHandler()
Construct a new DOMOutputHandler. |
|
DOMOutputHandler(org.w3c.dom.Document doc)
Construct a new DOMOutputHandler with a given document. |
|
DOMOutputHandler(org.w3c.dom.Document doc,
org.w3c.dom.Element elem)
Construct a new DOMOutputHandler with a given document and element. |
|
| Method Summary | |
|---|---|
void |
appendText(java.lang.String text)
Append text to the current element. |
void |
endDocument()
End the document. |
void |
endElement(java.lang.String name)
End the current element. |
org.w3c.dom.Document |
getDocument()
Get the document. |
void |
startDocument()
Start a new document. |
void |
startElement(java.lang.String name)
Start a new element without attributes at the current element. |
void |
startElement(java.lang.String name,
org.xml.sax.Attributes attrs)
Start a new element at the current element. |
| Methods inherited from class com.skaringa.javaxml.handler.AbstractDocumentOutputHandler |
|---|
appendNamespaceDeclarations, getProperties, setProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.skaringa.javaxml.handler.DocumentOutputHandlerInterface |
|---|
getProperties, setProperties |
| Constructor Detail |
|---|
public DOMOutputHandler(org.w3c.dom.Document doc,
org.w3c.dom.Element elem)
doc - The DOM document.elem - The parent element to insert output below.public DOMOutputHandler(org.w3c.dom.Document doc)
doc - The DOM document.public DOMOutputHandler()
| Method Detail |
|---|
public org.w3c.dom.Document getDocument()
public void startDocument()
DocumentOutputHandlerInterface
startDocument in interface DocumentOutputHandlerInterfaceDocumentOutputHandlerInterface.startDocument()public void endDocument()
DocumentOutputHandlerInterface
endDocument in interface DocumentOutputHandlerInterfaceDocumentOutputHandlerInterface.endDocument()
public void startElement(java.lang.String name,
org.xml.sax.Attributes attrs)
DocumentOutputHandlerInterface
startElement in interface DocumentOutputHandlerInterfacename - The name of the element.attrs - The attributes of the element.DocumentOutputHandlerInterface.startElement(String, Attributes)public void startElement(java.lang.String name)
DocumentOutputHandlerInterface
startElement in interface DocumentOutputHandlerInterfacename - The name of the element.DocumentOutputHandlerInterface.startElement(String)public void appendText(java.lang.String text)
DocumentOutputHandlerInterface
appendText in interface DocumentOutputHandlerInterfacetext - The text to append.DocumentOutputHandlerInterface.appendText(String)public void endElement(java.lang.String name)
DocumentOutputHandlerInterface
endElement in interface DocumentOutputHandlerInterfacename - The name of the element.DocumentOutputHandlerInterface.endElement(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||