fr.opensagres.xdocreport.document.odt.preprocessor
Class ODTBufferedDocumentContentHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by fr.opensagres.xdocreport.document.preprocessor.sax.BufferedDocumentContentHandler<Document>
          extended by fr.opensagres.xdocreport.document.preprocessor.sax.TransformedBufferedDocumentContentHandler<ODTBufferedDocument>
              extended by fr.opensagres.xdocreport.document.odt.preprocessor.ODTBufferedDocumentContentHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Direct Known Subclasses:
ODTStyleContentHandler

public class ODTBufferedDocumentContentHandler
extends TransformedBufferedDocumentContentHandler<ODTBufferedDocument>

SAX content handler to generate lazy Freemarker/Velocity loop directive in the table row which contains a list fields.


Field Summary
 
Fields inherited from class fr.opensagres.xdocreport.document.preprocessor.sax.BufferedDocumentContentHandler
bufferedDocument, CDATA_TYPE
 
Constructor Summary
ODTBufferedDocumentContentHandler(String entryName, FieldsMetadata fieldsMetadata, IDocumentFormatter formatter, Map<String,Object> sharedContext)
           
 
Method Summary
protected  ODTBufferedDocument createDocument()
           
 void doEndElement(String uri, String localName, String name)
           
 boolean doStartElement(String uri, String localName, String name, Attributes attributes)
           
protected  void flushCharacters(String characters)
           
protected  String getTableCellName()
           
protected  String getTableRowName()
           
protected  boolean needToProcessAutomaticStyles()
           
 
Methods inherited from class fr.opensagres.xdocreport.document.preprocessor.sax.TransformedBufferedDocumentContentHandler
extractListDirectiveInfo, extractListDirectiveInfo, formatDirective, generateKey, getAfterRowToken, getAfterTableCellToken, getBeforeRowToken, getBeforeTableCellToken, getDirectives, getEndNoParse, getEntryName, getFieldAsTextStyling, getFieldsMetadata, getFormatter, getProcessRowResult, getSharedContext, getStartNoParse, getVariableIndex, hasSharedContext, isTable, isTableRow, processRowIfNeeded, processRowIfNeeded, processScriptAfter, processScriptBefore, registerBufferedElement
 
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

ODTBufferedDocumentContentHandler

public ODTBufferedDocumentContentHandler(String entryName,
                                         FieldsMetadata fieldsMetadata,
                                         IDocumentFormatter formatter,
                                         Map<String,Object> sharedContext)
Method Detail

createDocument

protected ODTBufferedDocument createDocument()
Specified by:
createDocument in class TransformedBufferedDocumentContentHandler<ODTBufferedDocument>

doStartElement

public boolean doStartElement(String uri,
                              String localName,
                              String name,
                              Attributes attributes)
                       throws SAXException
Overrides:
doStartElement in class TransformedBufferedDocumentContentHandler<ODTBufferedDocument>
Throws:
SAXException

doEndElement

public void doEndElement(String uri,
                         String localName,
                         String name)
                  throws SAXException
Overrides:
doEndElement in class TransformedBufferedDocumentContentHandler<ODTBufferedDocument>
Throws:
SAXException

needToProcessAutomaticStyles

protected boolean needToProcessAutomaticStyles()

getTableRowName

protected String getTableRowName()
Specified by:
getTableRowName in class TransformedBufferedDocumentContentHandler<ODTBufferedDocument>

getTableCellName

protected String getTableCellName()
Specified by:
getTableCellName in class TransformedBufferedDocumentContentHandler<ODTBufferedDocument>

flushCharacters

protected void flushCharacters(String characters)
Overrides:
flushCharacters in class TransformedBufferedDocumentContentHandler<ODTBufferedDocument>


Copyright © 2013. All rights reserved.