Package org.ametys.cms.contenttype
Class HTMLUpdateHandler
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.cms.contenttype.HTMLUpdateHandler
- All Implemented Interfaces:
LogEnabled
,ContentHandler
,LexicalHandler
This class represent a handler from HTML RichText
-
Field Summary
Modifier and TypeFieldDescriptionprotected ContentHandler
The content handler where to writeprotected Content
The created content after copyprotected TraversableAmetysObject
The created object which implied the content copyprotected String
The path of the initial objectprotected Content
The original contentprotected String
The path of the original contentprotected TraversableAmetysObject
The initial object which implied the content copyprotected LexicalHandler
The lexical handler -
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
setContentHandler
(ContentHandler contentHandler) Set the target content handlervoid
setCreatedContent
(Content createdContent) Set the created contentvoid
setCreatedObject
(TraversableAmetysObject createdObject) Set created object after copyvoid
setDocumentLocator
(Locator locator) void
setInitialContent
(Content initialContent) Set the initial content copiedvoid
setInitialObject
(TraversableAmetysObject initialObject) Set the initial object responsible for copyvoid
setLexicalHandler
(LexicalHandler lexicalHandler) Set the target lexical handlervoid
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 org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
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
-
_lexicalHandler
The lexical handler -
_contentHandler
The content handler where to write -
_initialContent
The original content -
_createdContent
The created content after copy -
_initialContentPath
The path of the original content -
_initialObject
The initial object which implied the content copy -
_createdObject
The created object which implied the content copy -
_initialAOPath
The path of the initial object
-
-
Constructor Details
-
HTMLUpdateHandler
public HTMLUpdateHandler()
-
-
Method Details
-
setContentHandler
Set the target content handler- Parameters:
contentHandler
- the target content handler
-
setLexicalHandler
Set the target lexical handler- Parameters:
lexicalHandler
- the target lexical handler
-
setInitialContent
Set the initial content copied- Parameters:
initialContent
- the initial content
-
setCreatedContent
Set the created content- Parameters:
createdContent
- the created content after copy
-
setInitialObject
Set the initial object responsible for copy- Parameters:
initialObject
- the initial object responsible for copy
-
setCreatedObject
Set created object after copy- Parameters:
createdObject
- the created object after copy
-
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
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocator
in interfaceContentHandler
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
startEntity
- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
endEntity
- Specified by:
endEntity
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
-
comment
- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
-