public abstract class DOMPreprocessor extends AbstractXDocPreprocessor<Document>
| Constructor and Description |
|---|
DOMPreprocessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeSource(Document reader) |
protected String |
getDynamicAttr(Element element,
String attrName,
String contextIfKey,
String contextValueKey,
IDocumentFormatter formatter)
Generate directive (ex with FM: [#if ___font??]
|
protected Document |
getSource(XDocArchive documentArchive,
String entryName) |
boolean |
preprocess(String entryName,
Document document,
Writer writer,
FieldsMetadata fieldsMetadata,
IDocumentFormatter formatter,
Map<String,Object> sharedContext) |
protected void |
updateDynamicAttr(Element element,
String attrName,
String contextKey,
IDocumentFormatter formatter) |
protected void |
updateDynamicAttr(Element element,
String attrName,
String contextIfKey,
String contextValueKey,
IDocumentFormatter formatter) |
protected abstract void |
visit(Document document,
String entryName,
FieldsMetadata fieldsMetadata,
IDocumentFormatter formatter,
Map<String,Object> sharedContext) |
create, createAndProcess, preprocessprotected Document getSource(XDocArchive documentArchive, String entryName) throws XDocReportException, IOException
getSource in class AbstractXDocPreprocessor<Document>XDocReportExceptionIOExceptionprotected void closeSource(Document reader)
closeSource in class AbstractXDocPreprocessor<Document>public boolean preprocess(String entryName, Document document, Writer writer, FieldsMetadata fieldsMetadata, IDocumentFormatter formatter, Map<String,Object> sharedContext) throws XDocReportException, IOException
preprocess in class AbstractXDocPreprocessor<Document>XDocReportExceptionIOExceptionprotected abstract void visit(Document document, String entryName, FieldsMetadata fieldsMetadata, IDocumentFormatter formatter, Map<String,Object> sharedContext) throws XDocReportException
XDocReportExceptionprotected void updateDynamicAttr(Element element, String attrName, String contextKey, IDocumentFormatter formatter)
element - attrName - contextKey - formatter - protected void updateDynamicAttr(Element element, String attrName, String contextIfKey, String contextValueKey, IDocumentFormatter formatter)
element - attrName - contextKey - formatter - Copyright © 2015. All Rights Reserved.