Class AbstractDocumentFormatter
java.lang.Object
fr.opensagres.xdocreport.template.formatter.AbstractDocumentFormatter
- All Implemented Interfaces:
IDocumentFormatter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enum -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractItemNameList(String content, String fieldName, boolean forceAsField) intextractListDirectiveInfo(String content, DirectivesStack directives) formatAsSimpleField(boolean encloseInDirective, String... fields) getDirectiveToParse(int startLoopIndex, int endLoopIndex, int startIfIndex, int endIfIndex) getFunctionDirective(boolean encloseInDirective, String key, String methodName, String... parameters) getFunctionDirective(String key, String methodName, String... parameters) protected abstract StringintgetMinIndex(int startLoopIndex, int endLoopIndex, int startIfIndex, int endIfIndex) getSetDirective(String name, String value) getStartIfDirective(String fieldName) getStartIfDirectiveIfExists(String fieldName) getStartLoopDirective(String itemNameList) protected StringgetVariableName(long variableIndex) protected abstract booleanisModelField(String content, String fieldName) voidsetEndDocumentDirective(String endDocumentDirective) voidsetStartDocumentDirective(String startDocumentDirective) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.opensagres.xdocreport.template.formatter.IDocumentFormatter
containsInterpolation, extractListDirectiveInfo, extractModelTokenPrefix, formatAsCallTextStyling, formatAsFieldItemList, formatAsSimpleField, formatAsTextStylingField, getDefineDirective, getElseDirective, getEndIfDirective, getEndLoopDirective, getEndNoParse, getFunctionDirective, getIndexOfScript, getLoopCountDirective, getSetDirective, getStartIfDirective, getStartLoopDirective, getStartNoParse, hasDirective, isInstruction
-
Field Details
-
NO_ESCAPE
- See Also:
-
-
Constructor Details
-
AbstractDocumentFormatter
public AbstractDocumentFormatter()
-
-
Method Details
-
extractItemNameList
- Specified by:
extractItemNameListin interfaceIDocumentFormatter
-
getStartDocumentDirective
- Specified by:
getStartDocumentDirectivein interfaceIDocumentFormatter
-
setStartDocumentDirective
-
getEndDocumentDirective
- Specified by:
getEndDocumentDirectivein interfaceIDocumentFormatter
-
setEndDocumentDirective
-
getStartLoopDirective
- Specified by:
getStartLoopDirectivein interfaceIDocumentFormatter
-
extractListDirectiveInfo
- Specified by:
extractListDirectiveInfoin interfaceIDocumentFormatter
-
getItemToken
-
isModelField
-
getDirectiveToParse
protected AbstractDocumentFormatter.DirectiveToParse getDirectiveToParse(int startLoopIndex, int endLoopIndex, int startIfIndex, int endIfIndex) -
getMinIndex
public int getMinIndex(int startLoopIndex, int endLoopIndex, int startIfIndex, int endIfIndex) -
getVariableName
-
formatAsSimpleField
- Specified by:
formatAsSimpleFieldin interfaceIDocumentFormatter
-
getFunctionDirective
public String getFunctionDirective(boolean encloseInDirective, String key, String methodName, String... parameters) - Specified by:
getFunctionDirectivein interfaceIDocumentFormatter
-
getFunctionDirective
- Specified by:
getFunctionDirectivein interfaceIDocumentFormatter
-
getSetDirective
- Specified by:
getSetDirectivein interfaceIDocumentFormatter
-
getStartIfDirective
- Specified by:
getStartIfDirectivein interfaceIDocumentFormatter
-
getStartIfDirectiveIfExists
- Specified by:
getStartIfDirectiveIfExistsin interfaceIDocumentFormatter
-