| org.apache.cocoon.transformation.AbstractTransformer org.apache.cocoon.transformation.AbstractDOMTransformer
AbstractDOMTransformer | abstract public class AbstractDOMTransformer extends AbstractTransformer implements DOMBuilder.Listener,Composable,Disposable(Code) | | An Abstract DOM Transformer, for use when a transformer needs a DOM-based
view of the document.
Subclass this interface and implement transform(Document doc) .
If you need a ComponentManager there is an instance variable
manager for use.
author: Ross Burton author: Bruce G. Robertson author: Vadim Gritsenko version: CVS $Id: AbstractDOMTransformer.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public void | characters(char c, int start, int len) | public void | comment(char ch, int start, int len) | public void | compose(ComponentManager manager) Set the component manager. | public void | dispose() | public void | endCDATA() | public void | endDTD() | public void | endDocument() | public void | endElement(String uri, String loc, String raw) | public void | endEntity(String name) | public void | endPrefixMapping(String prefix) | public void | ignorableWhitespace(char c, int start, int len) | public void | notify(Document doc) This method is called when the Document is finished. | public void | processingInstruction(String target, String data) | public void | recycle() Recycle the component. | public void | setDocumentLocator(Locator locator) | public void | setup(SourceResolver resolver, Map objectModel, String src, Parameters par) Set the SourceResolver , objectModel Map ,
the source and sitemap Parameters used to process the request. | public void | skippedEntity(String name) | public void | startCDATA() | public void | startDTD(String name, String publicId, String systemId) | public void | startDocument() | public void | startElement(String uri, String loc, String raw, Attributes a) | public void | startEntity(String name) | public void | startPrefixMapping(String prefix, String uri) | abstract protected Document | transform(Document doc) Transform the specified DOM, returning a new DOM to stream down the pipeline. |
builder | protected DOMBuilder builder(Code) | | The DOMBuilder used to build DOM tree out of
incoming SAX events.
|
manager | protected ComponentManager manager(Code) | | A ComponentManager which is available for use.
|
objectModel | protected Map objectModel(Code) | | The request object model
|
parameters | protected Parameters parameters(Code) | | Parameters in the sitemap
|
AbstractDOMTransformer | public AbstractDOMTransformer()(Code) | | |
compose | public void compose(ComponentManager manager)(Code) | | Set the component manager.
|
dispose | public void dispose()(Code) | | dispose
|
ignorableWhitespace | public void ignorableWhitespace(char c, int start, int len) throws SAXException(Code) | | |
notify | public void notify(Document doc) throws SAXException(Code) | | This method is called when the Document is finished.
Parameters: doc - The DOM Document object representing this SAX stream See Also: org.apache.cocoon.xml.dom.DOMBuilder.Listener |
recycle | public void recycle()(Code) | | Recycle the component.
|
setDocumentLocator | public void setDocumentLocator(Locator locator)(Code) | | |
transform | abstract protected Document transform(Document doc)(Code) | | Transform the specified DOM, returning a new DOM to stream down the pipeline.
Parameters: doc - The DOM Document representing the SAX stream A DOM Document to stream down the pipeline |
|
|