public class HierarchizeTransformer extends AbstractTransformer
Modifier and Type | Field and Description |
---|---|
private int |
_level |
static String |
TAG_ARTICLE
Root tag
|
static String |
TAG_SECTION
Tag for section
|
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
ROLE
Constructor and Description |
---|
HierarchizeTransformer() |
Modifier and Type | Method and Description |
---|---|
void |
endElement(String uri,
String localName,
String qName) |
void |
setup(SourceResolver resolver,
Map objectModel,
String src,
Parameters par) |
void |
startElement(String uri,
String localName,
String qName,
Attributes atts) |
characters, 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
characters, endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
setConsumer
public static final String TAG_SECTION
public static final String TAG_ARTICLE
private int _level
public HierarchizeTransformer()
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class AbstractXMLPipe
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class AbstractXMLPipe
SAXException