Class HTMLHandlers2HTMLEditorTransformer
java.lang.Object
org.ametys.cms.transformation.htmledition.HTMLHandlers2HTMLEditorTransformer
- All Implemented Interfaces:
Poolable
,Recyclable
,Component
,Serviceable
,SitemapModelComponent
,Transformer
,XMLConsumer
,XMLPipe
,XMLProducer
,XMLConsumer
,ContentHandler
,LexicalHandler
public class HTMLHandlers2HTMLEditorTransformer
extends Object
implements Transformer, Serviceable, Recyclable
This cocoon transformer use the HTMLEnhancementExtensionPoint to be based upon a serie of EnhancementHandler
-
Field Summary
Modifier and TypeFieldDescriptionprotected ContentHandler
The content handlerprotected HTMLEditionHandlerExtensionPoint
The htmledition extension pointprotected HTMLEnhancementExtensionPoint
The HTML enhancement extension pointprotected LexicalHandler
The lexical handlerprotected ServiceManager
The service managerFields inherited from interface org.apache.cocoon.transformation.Transformer
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
comment
(char[] ch, int start, int length) void
endCDATA()
void
void
endDTD()
void
endElement
(String uri, String localName, String qName) void
void
endPrefixMapping
(String prefix) void
ignorableWhitespace
(char[] ch, int start, int length) void
processingInstruction
(String target, String data) void
recycle()
void
service
(ServiceManager manager) void
setConsumer
(XMLConsumer consumer) void
setDocumentLocator
(Locator locator) void
setup
(SourceResolver resolver, Map objectModel, String src, Parameters par) void
skippedEntity
(String name) void
void
void
void
startElement
(String uri, String localName, String qName, Attributes atts) void
startEntity
(String name) void
startPrefixMapping
(String prefix, String uri) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
_manager
The service manager -
_contentHandler
The content handler -
_lexicalHandler
The lexical handler -
_htmlEditionExtensionPoint
The htmledition extension point -
_htmlEnhancementExtensionPoint
The HTML enhancement extension point
-
-
Constructor Details
-
HTMLHandlers2HTMLEditorTransformer
public HTMLHandlers2HTMLEditorTransformer()
-
-
Method Details
-
recycle
- Specified by:
recycle
in interfaceRecyclable
-
setConsumer
- Specified by:
setConsumer
in interfaceXMLProducer
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
setup
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException - Specified by:
setup
in interfaceSitemapModelComponent
- Throws:
ProcessingException
SAXException
IOException
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocator
in interfaceContentHandler
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
- Throws:
SAXException
-
comment
- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
startDTD
- Specified by:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
endDTD
- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
startEntity
- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
endEntity
- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
-