Class HTMLEditorHandlers2HTMLTransformer
- java.lang.Object
-
- org.ametys.cms.transformation.htmledition.HTMLEditorHandlers2HTMLTransformer
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Component
,Serviceable
,SitemapModelComponent
,Transformer
,XMLConsumer
,XMLPipe
,XMLProducer
,XMLConsumer
,ContentHandler
,LexicalHandler
public class HTMLEditorHandlers2HTMLTransformer extends Object implements Transformer, Serviceable, Recyclable
This cocoon transformer use the DocbookEnhancementExtensionPoint to be based upon a serie of EnhancementHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentHandler
_contentHandler
The content handlerprotected HTMLEditionHandlerExtensionPoint
_htmlEditionExtensionPoint
The htmledition extension pointprotected HTMLEnhancementExtensionPoint
_htmlEnhancementExtensionPoint
The docbook enhancement extension pointprotected LexicalHandler
_lexicalHandler
The lexical handlerprotected ServiceManager
_manager
The service manager-
Fields inherited from interface org.apache.cocoon.transformation.Transformer
ROLE
-
-
Constructor Summary
Constructors Constructor Description HTMLEditorHandlers2HTMLTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
void
comment(char[] ch, int start, int length)
void
endCDATA()
void
endDocument()
void
endDTD()
void
endElement(String uri, String localName, String qName)
void
endEntity(String name)
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
startCDATA()
void
startDocument()
void
startDTD(String name, String publicId, String systemId)
void
startElement(String uri, String localName, String qName, Attributes atts)
void
startEntity(String name)
void
startPrefixMapping(String prefix, String uri)
-
-
-
Field Detail
-
_manager
protected ServiceManager _manager
The service manager
-
_contentHandler
protected ContentHandler _contentHandler
The content handler
-
_lexicalHandler
protected LexicalHandler _lexicalHandler
The lexical handler
-
_htmlEditionExtensionPoint
protected HTMLEditionHandlerExtensionPoint _htmlEditionExtensionPoint
The htmledition extension point
-
_htmlEnhancementExtensionPoint
protected HTMLEnhancementExtensionPoint _htmlEnhancementExtensionPoint
The docbook enhancement extension point
-
-
Constructor Detail
-
HTMLEditorHandlers2HTMLTransformer
public HTMLEditorHandlers2HTMLTransformer()
-
-
Method Detail
-
recycle
public void recycle()
- Specified by:
recycle
in interfaceRecyclable
-
setConsumer
public void setConsumer(XMLConsumer consumer)
- Specified by:
setConsumer
in interfaceXMLProducer
-
service
public void service(ServiceManager manager) throws ServiceException
- 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
public void startDocument() throws SAXException
- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException
- 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
public void endElement(String uri, String localName, String qName) throws SAXException
- Specified by:
endElement
in interfaceContentHandler
- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) throws SAXException
- Specified by:
characters
in interfaceContentHandler
- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String prefix, String uri) throws SAXException
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String prefix) throws SAXException
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
processingInstruction
public void processingInstruction(String target, String data) throws SAXException
- Specified by:
processingInstruction
in interfaceContentHandler
- Throws:
SAXException
-
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocator
in interfaceContentHandler
-
skippedEntity
public void skippedEntity(String name) throws SAXException
- Specified by:
skippedEntity
in interfaceContentHandler
- Throws:
SAXException
-
comment
public void comment(char[] ch, int start, int length) throws SAXException
- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
-
startCDATA
public void startCDATA() throws SAXException
- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
endCDATA
public void endCDATA() throws SAXException
- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
startDTD
public void startDTD(String name, String publicId, String systemId) throws SAXException
- Specified by:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
endDTD
public void endDTD() throws SAXException
- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
startEntity
public void startEntity(String name) throws SAXException
- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
endEntity
public void endEntity(String name) throws SAXException
- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
-