public class CDMRichTextTransformer extends AbstractTransformer
para
elementtitle
outside a section
elementModifier and Type | Field and Description |
---|---|
private static String[] |
__BLOC_TYPES |
private static String[] |
__CHARACTER_TYPES |
private static String |
__TAG_ARTICLE |
private static String |
__TAG_SECTION |
private static String |
__TAG_TITLE |
(package private) boolean |
_inBlock |
(package private) boolean |
_inDocbook |
(package private) boolean |
_inSection |
(package private) boolean |
_inTitle |
(package private) int |
_sectionCount |
(package private) boolean |
_startPara |
(package private) int |
_titleCount |
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
ROLE
Constructor and Description |
---|
CDMRichTextTransformer() |
Modifier and Type | Method and Description |
---|---|
private void |
_endParaElement() |
private void |
_init() |
private void |
_startParaElement() |
void |
characters(char[] c,
int start,
int len) |
void |
endElement(String uri,
String localName,
String raw) |
void |
setup(SourceResolver resolver,
Map objectModel,
String src,
Parameters par) |
void |
startElement(String uri,
String localName,
String raw,
Attributes attrs) |
comment, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping
recycle, setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
setConsumer
private static final String __TAG_ARTICLE
private static final String __TAG_SECTION
private static final String __TAG_TITLE
private static final String[] __CHARACTER_TYPES
private static final String[] __BLOC_TYPES
int _sectionCount
int _titleCount
boolean _inDocbook
boolean _inBlock
boolean _inSection
boolean _inTitle
boolean _startPara
public CDMRichTextTransformer()
private void _init()
public void startElement(String uri, String localName, String raw, Attributes attrs) throws SAXException
startElement
in interface ContentHandler
startElement
in class AbstractXMLPipe
SAXException
public void endElement(String uri, String localName, String raw) throws SAXException
endElement
in interface ContentHandler
endElement
in class AbstractXMLPipe
SAXException
public void characters(char[] c, int start, int len) throws SAXException
characters
in interface ContentHandler
characters
in class AbstractXMLPipe
SAXException
private void _startParaElement() throws SAXException
SAXException
private void _endParaElement() throws SAXException
SAXException
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException