public abstract class AbstractDocumentFormatter extends Object implements IDocumentFormatter
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractDocumentFormatter.DirectiveToParse |
| Constructor and Description |
|---|
AbstractDocumentFormatter() |
| Modifier and Type | Method and Description |
|---|---|
String |
extractItemNameList(String content,
String fieldName,
boolean forceAsField) |
int |
extractListDirectiveInfo(String content,
DirectivesStack directives) |
String |
formatAsSimpleField(boolean encloseInDirective,
String... fields) |
protected AbstractDocumentFormatter.DirectiveToParse |
getDirectiveToParse(int startLoopIndex,
int endLoopIndex,
int startIfIndex,
int endIfIndex) |
String |
getEndDocumentDirective() |
String |
getFunctionDirective(boolean encloseInDirective,
String key,
String methodName,
String... parameters) |
String |
getFunctionDirective(String key,
String methodName,
String... parameters) |
protected abstract String |
getItemToken() |
int |
getMinIndex(int startLoopIndex,
int endLoopIndex,
int startIfIndex,
int endIfIndex) |
String |
getSetDirective(String name,
String value) |
String |
getStartDocumentDirective() |
String |
getStartIfDirective(String fieldName) |
String |
getStartLoopDirective(String itemNameList) |
protected String |
getVariableName(long variableIndex) |
protected abstract boolean |
isModelField(String content,
String fieldName) |
void |
setEndDocumentDirective(String endDocumentDirective) |
void |
setStartDocumentDirective(String startDocumentDirective) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsInterpolation, extractListDirectiveInfo, extractModelTokenPrefix, formatAsCallTextStyling, formatAsFieldItemList, formatAsSimpleField, formatAsTextStylingField, getDefineDirective, getElseDirective, getEndIfDirective, getEndLoopDirective, getEndNoParse, getFunctionDirective, getIndexOfScript, getLoopCountDirective, getSetDirective, getStartIfDirective, getStartLoopDirective, getStartNoParse, hasDirectivepublic static final String NO_ESCAPE
public String extractItemNameList(String content, String fieldName, boolean forceAsField)
extractItemNameList in interface IDocumentFormatterpublic String getStartDocumentDirective()
getStartDocumentDirective in interface IDocumentFormatterpublic void setStartDocumentDirective(String startDocumentDirective)
public String getEndDocumentDirective()
getEndDocumentDirective in interface IDocumentFormatterpublic void setEndDocumentDirective(String endDocumentDirective)
public String getStartLoopDirective(String itemNameList)
getStartLoopDirective in interface IDocumentFormatterpublic int extractListDirectiveInfo(String content, DirectivesStack directives)
extractListDirectiveInfo in interface IDocumentFormatterprotected abstract String getItemToken()
protected AbstractDocumentFormatter.DirectiveToParse getDirectiveToParse(int startLoopIndex, int endLoopIndex, int startIfIndex, int endIfIndex)
public int getMinIndex(int startLoopIndex,
int endLoopIndex,
int startIfIndex,
int endIfIndex)
protected String getVariableName(long variableIndex)
public String formatAsSimpleField(boolean encloseInDirective, String... fields)
formatAsSimpleField in interface IDocumentFormatterpublic String getFunctionDirective(boolean encloseInDirective, String key, String methodName, String... parameters)
getFunctionDirective in interface IDocumentFormatterpublic String getFunctionDirective(String key, String methodName, String... parameters)
getFunctionDirective in interface IDocumentFormatterpublic String getSetDirective(String name, String value)
getSetDirective in interface IDocumentFormatterpublic String getStartIfDirective(String fieldName)
getStartIfDirective in interface IDocumentFormatterCopyright © 2015. All Rights Reserved.