|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler fr.opensagres.xdocreport.document.preprocessor.sax.BufferedDocumentContentHandler<Document> fr.opensagres.xdocreport.document.preprocessor.sax.TransformedBufferedDocumentContentHandler<Document>
public abstract class TransformedBufferedDocumentContentHandler<Document extends TransformedBufferedDocument>
Document transformed to manage lazy loop for row table and dynamic image.
Field Summary |
---|
Fields inherited from class fr.opensagres.xdocreport.document.preprocessor.sax.BufferedDocumentContentHandler |
---|
bufferedDocument, CDATA_TYPE |
Constructor Summary | |
---|---|
protected |
TransformedBufferedDocumentContentHandler(String entryName,
FieldsMetadata fieldsMetadata,
IDocumentFormatter formater,
Map<String,Object> sharedContext)
|
Method Summary | |
---|---|
protected abstract Document |
createDocument()
|
void |
doEndElement(String uri,
String localName,
String name)
|
boolean |
doStartElement(String uri,
String localName,
String name,
Attributes attributes)
|
int |
extractListDirectiveInfo(String characters)
|
int |
extractListDirectiveInfo(String characters,
boolean dontRemoveListDirectiveInfo)
|
protected void |
flushCharacters(String characters)
|
String |
formatDirective(String directive)
|
static String |
generateKey(long variableIndex)
|
protected String |
getAfterRowToken()
Returns the after row token. |
protected String |
getAfterTableCellToken()
Returns the after row token. |
protected String |
getBeforeRowToken()
Returns the before row token. |
protected String |
getBeforeTableCellToken()
Returns the before row token. |
DirectivesStack |
getDirectives()
|
String |
getEndNoParse()
|
String |
getEntryName()
|
FieldMetadata |
getFieldAsTextStyling(String content)
|
FieldsMetadata |
getFieldsMetadata()
|
IDocumentFormatter |
getFormatter()
|
ProcessRowResult |
getProcessRowResult(String content,
boolean forceAsField)
If a row parsing, replace fields name with well script to manage lazy loop for table row. |
Map<String,Object> |
getSharedContext()
|
String |
getStartNoParse()
|
protected abstract String |
getTableCellName()
|
protected abstract String |
getTableRowName()
|
long |
getVariableIndex()
|
boolean |
hasSharedContext()
|
protected boolean |
isTable(String uri,
String localName,
String name)
Returns true if current element is a table and false otherwise. |
protected boolean |
isTableRow(String uri,
String localName,
String name)
Returns true if current element is a table row and false otherwise. |
String |
processRowIfNeeded(String content)
|
String |
processRowIfNeeded(String content,
boolean forceAsField)
If a row parsing, replace fields name with well script to manage lazy loop for table row. |
boolean |
processScriptAfter(String fieldName)
|
boolean |
processScriptBefore(String fieldName)
|
String |
registerBufferedElement(long variableIndex,
BufferedElement element)
|
Methods inherited from class fr.opensagres.xdocreport.document.preprocessor.sax.BufferedDocumentContentHandler |
---|
characters, endElement, findParentElementInfo, findParentElementInfo, getBufferedDocument, getCurrentElement, getElementIndex, mustEncodeCharachers, printEscaped, resetCharacters, startDocument, startElement, startPrefixMapping, toAttributesImpl |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TransformedBufferedDocumentContentHandler(String entryName, FieldsMetadata fieldsMetadata, IDocumentFormatter formater, Map<String,Object> sharedContext)
Method Detail |
---|
public boolean doStartElement(String uri, String localName, String name, Attributes attributes) throws SAXException
doStartElement
in class BufferedDocumentContentHandler<Document extends TransformedBufferedDocument>
SAXException
protected void flushCharacters(String characters)
flushCharacters
in class BufferedDocumentContentHandler<Document extends TransformedBufferedDocument>
public String processRowIfNeeded(String content)
public String processRowIfNeeded(String content, boolean forceAsField)
content
-
public ProcessRowResult getProcessRowResult(String content, boolean forceAsField)
content
-
public Map<String,Object> getSharedContext()
public boolean hasSharedContext()
public FieldsMetadata getFieldsMetadata()
public IDocumentFormatter getFormatter()
public DirectivesStack getDirectives()
protected String getBeforeRowToken()
protected String getAfterRowToken()
protected String getBeforeTableCellToken()
protected String getAfterTableCellToken()
public int extractListDirectiveInfo(String characters, boolean dontRemoveListDirectiveInfo)
public int extractListDirectiveInfo(String characters)
protected boolean isTable(String uri, String localName, String name)
uri
- localName
- name
-
protected abstract String getTableRowName()
protected abstract String getTableCellName()
protected boolean isTableRow(String uri, String localName, String name)
uri
- localName
- name
-
public boolean processScriptBefore(String fieldName)
public boolean processScriptAfter(String fieldName)
public void doEndElement(String uri, String localName, String name) throws SAXException
doEndElement
in class BufferedDocumentContentHandler<Document extends TransformedBufferedDocument>
SAXException
public FieldMetadata getFieldAsTextStyling(String content)
public String registerBufferedElement(long variableIndex, BufferedElement element)
public static String generateKey(long variableIndex)
public long getVariableIndex()
public String getEntryName()
public String formatDirective(String directive)
public String getStartNoParse()
public String getEndNoParse()
protected abstract Document createDocument()
createDocument
in class BufferedDocumentContentHandler<Document extends TransformedBufferedDocument>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |