public class HTMLUpdateHandler extends AbstractLogEnabled implements ContentHandler, LexicalHandler
Modifier and Type | Field and Description |
---|---|
protected ContentHandler |
_contentHandler
The content handler where to write
|
protected Content |
_createdContent
The created content after copy
|
protected TraversableAmetysObject |
_createdObject
The created object which implied the content copy
|
protected String |
_initialAOPath
The path of the initial object
|
protected Content |
_initialContent
The original content
|
protected String |
_initialContentPath
The path of the original content
|
protected TraversableAmetysObject |
_initialObject
The initial object which implied the content copy
|
protected LexicalHandler |
_lexicalHandler
The lexical handler
|
Constructor and Description |
---|
HTMLUpdateHandler() |
Modifier and Type | Method and 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 |
setContentHandler(ContentHandler contentHandler)
Set the target content handler
|
void |
setCreatedContent(Content createdContent)
Set the created content
|
void |
setCreatedObject(TraversableAmetysObject createdObject)
Set created object after copy
|
void |
setDocumentLocator(Locator locator) |
void |
setInitialContent(Content initialContent)
Set the initial content copied
|
void |
setInitialObject(TraversableAmetysObject initialObject)
Set the initial object responsible for copy
|
void |
setLexicalHandler(LexicalHandler lexicalHandler)
Set the target lexical handler
|
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) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected LexicalHandler _lexicalHandler
protected ContentHandler _contentHandler
protected Content _initialContent
protected Content _createdContent
protected String _initialContentPath
protected TraversableAmetysObject _initialObject
protected TraversableAmetysObject _createdObject
protected String _initialAOPath
public HTMLUpdateHandler()
public void setContentHandler(ContentHandler contentHandler)
contentHandler
- the target content handlerpublic void setLexicalHandler(LexicalHandler lexicalHandler)
lexicalHandler
- the target lexical handlerpublic void setInitialContent(Content initialContent)
initialContent
- the initial contentpublic void setCreatedContent(Content createdContent)
createdContent
- the created content after copypublic void setInitialObject(TraversableAmetysObject initialObject)
initialObject
- the initial object responsible for copypublic void setCreatedObject(TraversableAmetysObject createdObject)
createdObject
- the created object after copypublic void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
SAXException
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
SAXException
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
SAXException
public void startEntity(String name) throws SAXException
startEntity
in interface LexicalHandler
SAXException
public void endEntity(String name) throws SAXException
endEntity
in interface LexicalHandler
SAXException
public void startCDATA() throws SAXException
startCDATA
in interface LexicalHandler
SAXException
public void endCDATA() throws SAXException
endCDATA
in interface LexicalHandler
SAXException
public void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD
in interface LexicalHandler
SAXException
public void endDTD() throws SAXException
endDTD
in interface LexicalHandler
SAXException
public void comment(char[] ch, int start, int length) throws SAXException
comment
in interface LexicalHandler
SAXException