| org.apache.cocoon.xml.AbstractXMLPipe org.apache.cocoon.xml.dom.DOMBuilder
All known Subclasses: org.apache.cocoon.components.source.impl.XModuleSource, org.apache.cocoon.transformation.AbstractDOMTransformer,
DOMBuilder | public class DOMBuilder extends AbstractXMLPipe (Code) | | The DOMBuilder is a utility class that will generate a W3C
DOM Document from SAX events.
author: Carsten Ziegeler version: $Id: DOMBuilder.java 433543 2006-08-22 06:22:54Z crossley $ |
Inner Class :public interface Listener | |
Constructor Summary | |
public | DOMBuilder() Construct a new instance of this DOMBuilder. | public | DOMBuilder(SAXTransformerFactory factory) Construct a new instance of this DOMBuilder. | public | DOMBuilder(DOMFactory factory) Construct a new instance of this DOMBuilder. | public | DOMBuilder(Listener listener) Construct a new instance of this DOMBuilder. | public | DOMBuilder(DOMFactory factory, Listener listener) Construct a new instance of this DOMBuilder. | public | DOMBuilder(DOMFactory domFactory, Listener listener, Node parentNode) Construct a new instance of this DOMBuilder. | public | DOMBuilder(Node parentNode) Constructs a new instance that appends nodes to the given parent node. | public | DOMBuilder(Listener listener, Node parentNode) Construct a new instance of this DOMBuilder. | public | DOMBuilder(SAXTransformerFactory factory, Listener listener, Node parentNode) Construct a new instance of this DOMBuilder. |
Method Summary | |
public void | endDocument() Receive notification of the end of a document. | public Document | getDocument() Return the newly built Document. | protected void | notifyListener() Receive notification of a successfully completed DOM tree generation. | public void | recycle() Recycle this builder, prepare for re-use. |
listener | protected Listener listener(Code) | | The listener
|
parentNode | protected Node parentNode(Code) | | The parentNode
|
DOMBuilder | public DOMBuilder()(Code) | | Construct a new instance of this DOMBuilder.
|
DOMBuilder | public DOMBuilder(DOMFactory factory)(Code) | | Construct a new instance of this DOMBuilder.
|
DOMBuilder | public DOMBuilder(Listener listener)(Code) | | Construct a new instance of this DOMBuilder.
|
DOMBuilder | public DOMBuilder(DOMFactory factory, Listener listener)(Code) | | Construct a new instance of this DOMBuilder.
|
DOMBuilder | public DOMBuilder(DOMFactory domFactory, Listener listener, Node parentNode)(Code) | | Construct a new instance of this DOMBuilder.
|
DOMBuilder | public DOMBuilder(Node parentNode)(Code) | | Constructs a new instance that appends nodes to the given parent node.
Note: You cannot use a Listener when appending to a
Node , because the notification occurs at endDocument()
which does not happen here.
|
DOMBuilder | public DOMBuilder(Listener listener, Node parentNode)(Code) | | Construct a new instance of this DOMBuilder.
|
endDocument | public void endDocument() throws SAXException(Code) | | Receive notification of the end of a document.
exception: SAXException - If this method was not called appropriately. |
getDocument | public Document getDocument()(Code) | | Return the newly built Document.
|
notifyListener | protected void notifyListener() throws SAXException(Code) | | Receive notification of a successfully completed DOM tree generation.
|
recycle | public void recycle()(Code) | | Recycle this builder, prepare for re-use.
|
Methods inherited from org.apache.cocoon.xml.AbstractXMLPipe | public void characters(char c, int start, int len) throws SAXException(Code)(Java Doc) public void comment(char ch, int start, int len) throws SAXException(Code)(Java Doc) public void endCDATA() throws SAXException(Code)(Java Doc) public void endDTD() throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String loc, String raw) throws SAXException(Code)(Java Doc) public void endEntity(String name) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void ignorableWhitespace(char c, int start, int len) throws SAXException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startCDATA() throws SAXException(Code)(Java Doc) public void startDTD(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String loc, String raw, Attributes a) throws SAXException(Code)(Java Doc) public void startEntity(String name) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc)
|
|
|