public class XOMBuilder
extends com.escenic.common.xml.sax.DelegatingContentHandler
ContentHandler
that builds a XOM Document
and delegates to the next ContentHandler
.
In addition of building a XOM Document
it also adds a custom attribute named 'uid', which is auto-
incremental, with the content (i.e article, content, ioSection, section, mediaGroup) element.Modifier and Type | Field and Description |
---|---|
protected org.apache.log4j.Logger |
mLogger |
static String |
UNIQUE_ID |
Constructor and Description |
---|
XOMBuilder(ContentHandler pNextImportHandler,
XOMWriter pXOMWriter) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] pCharacters,
int pStart,
int pLength) |
void |
endElement(String pNamespaceURI,
String pLocalName,
String pQName) |
void |
startDocument() |
void |
startElement(String pNamespaceURI,
String pLocalName,
String pQName,
Attributes pAttributes) |
public static final String UNIQUE_ID
protected final org.apache.log4j.Logger mLogger
public XOMBuilder(ContentHandler pNextImportHandler, XOMWriter pXOMWriter)
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class com.escenic.common.xml.sax.DelegatingContentHandler
SAXException
public void startElement(String pNamespaceURI, String pLocalName, String pQName, Attributes pAttributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class com.escenic.common.xml.sax.DelegatingContentHandler
SAXException
public void characters(char[] pCharacters, int pStart, int pLength) throws SAXException
characters
in interface ContentHandler
characters
in class com.escenic.common.xml.sax.DelegatingContentHandler
SAXException
public void endElement(String pNamespaceURI, String pLocalName, String pQName) throws SAXException
endElement
in interface ContentHandler
endElement
in class com.escenic.common.xml.sax.DelegatingContentHandler
SAXException
© 1998- 2021 Escenic AS