Package org.ametys.cms.transformation
Class AbstractEnhancementTransformer
java.lang.Object
org.ametys.cms.transformation.AbstractEnhancementTransformer
- All Implemented Interfaces:
Poolable,Recyclable,Component,Serviceable,SitemapModelComponent,Transformer,XMLConsumer,XMLPipe,XMLProducer,XMLConsumer,ContentHandler,LexicalHandler
- Direct Known Subclasses:
Docbook2CDMFrTransformer,DocbookEnhancementTransformer,HTMLEnhancementTransformer,HTMLEnhancementTransformer
public abstract class AbstractEnhancementTransformer
extends Object
implements Transformer, Serviceable, Recyclable
This abstract cocoon transformer have its content and lexical handler configurable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentHandlerThe content handlerprotected LexicalHandlerThe lexical handlerprotected ServiceManagerThe service managerFields inherited from interface org.apache.cocoon.transformation.Transformer
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidcomment(char[] ch, int start, int length) voidendCDATA()voidvoidendDTD()voidendElement(String uri, String localName, String qName) voidvoidendPrefixMapping(String prefix) voidignorableWhitespace(char[] ch, int start, int length) voidprocessingInstruction(String target, String data) voidrecycle()voidservice(ServiceManager manager) abstract voidsetConsumer(XMLConsumer consumer) voidsetDocumentLocator(Locator locator) voidsetup(SourceResolver resolver, Map objectModel, String src, Parameters par) voidskippedEntity(String name) voidvoidvoidvoidstartElement(String uri, String localName, String qName, Attributes atts) voidstartEntity(String name) voidstartPrefixMapping(String prefix, String uri) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
_manager
The service manager -
_contentHandler
The content handler -
_lexicalHandler
The lexical handler
-
-
Constructor Details
-
AbstractEnhancementTransformer
public AbstractEnhancementTransformer()
-
-
Method Details
-
recycle
- Specified by:
recyclein interfaceRecyclable
-
setConsumer
- Specified by:
setConsumerin interfaceXMLProducer
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
setup
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException - Specified by:
setupin interfaceSitemapModelComponent- Throws:
ProcessingExceptionSAXExceptionIOException
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
comment
- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
startDTD
- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-