public abstract class AbstractDocumentFormatter extends java.lang.Object implements IDocumentFormatter
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractDocumentFormatter.DirectiveToParse |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NO_ESCAPE |
| Constructor and Description |
|---|
AbstractDocumentFormatter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
extractItemNameList(java.lang.String content,
java.lang.String fieldName,
boolean forceAsField) |
int |
extractListDirectiveInfo(java.lang.String content,
DirectivesStack directives) |
java.lang.String |
formatAsSimpleField(boolean encloseInDirective,
java.lang.String... fields) |
protected AbstractDocumentFormatter.DirectiveToParse |
getDirectiveToParse(int startLoopIndex,
int endLoopIndex,
int startIfIndex,
int endIfIndex) |
java.lang.String |
getEndDocumentDirective() |
java.lang.String |
getFunctionDirective(boolean encloseInDirective,
java.lang.String key,
java.lang.String methodName,
java.lang.String... parameters) |
java.lang.String |
getFunctionDirective(java.lang.String key,
java.lang.String methodName,
java.lang.String... parameters) |
protected abstract java.lang.String |
getItemToken() |
int |
getMinIndex(int startLoopIndex,
int endLoopIndex,
int startIfIndex,
int endIfIndex) |
java.lang.String |
getSetDirective(java.lang.String name,
java.lang.String value) |
java.lang.String |
getStartDocumentDirective() |
java.lang.String |
getStartIfDirective(java.lang.String fieldName) |
java.lang.String |
getStartIfDirectiveIfExists(java.lang.String fieldName) |
java.lang.String |
getStartLoopDirective(java.lang.String itemNameList) |
protected java.lang.String |
getVariableName(long variableIndex) |
protected abstract boolean |
isModelField(java.lang.String content,
java.lang.String fieldName) |
void |
setEndDocumentDirective(java.lang.String endDocumentDirective) |
void |
setStartDocumentDirective(java.lang.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, hasDirective, isInstructionpublic static final java.lang.String NO_ESCAPE
public java.lang.String extractItemNameList(java.lang.String content,
java.lang.String fieldName,
boolean forceAsField)
extractItemNameList in interface IDocumentFormatterpublic java.lang.String getStartDocumentDirective()
getStartDocumentDirective in interface IDocumentFormatterpublic void setStartDocumentDirective(java.lang.String startDocumentDirective)
public java.lang.String getEndDocumentDirective()
getEndDocumentDirective in interface IDocumentFormatterpublic void setEndDocumentDirective(java.lang.String endDocumentDirective)
public java.lang.String getStartLoopDirective(java.lang.String itemNameList)
getStartLoopDirective in interface IDocumentFormatterpublic int extractListDirectiveInfo(java.lang.String content,
DirectivesStack directives)
extractListDirectiveInfo in interface IDocumentFormatterprotected abstract java.lang.String getItemToken()
protected abstract boolean isModelField(java.lang.String content,
java.lang.String fieldName)
protected AbstractDocumentFormatter.DirectiveToParse getDirectiveToParse(int startLoopIndex, int endLoopIndex, int startIfIndex, int endIfIndex)
public int getMinIndex(int startLoopIndex,
int endLoopIndex,
int startIfIndex,
int endIfIndex)
protected java.lang.String getVariableName(long variableIndex)
public java.lang.String formatAsSimpleField(boolean encloseInDirective,
java.lang.String... fields)
formatAsSimpleField in interface IDocumentFormatterpublic java.lang.String getFunctionDirective(boolean encloseInDirective,
java.lang.String key,
java.lang.String methodName,
java.lang.String... parameters)
getFunctionDirective in interface IDocumentFormatterpublic java.lang.String getFunctionDirective(java.lang.String key,
java.lang.String methodName,
java.lang.String... parameters)
getFunctionDirective in interface IDocumentFormatterpublic java.lang.String getSetDirective(java.lang.String name,
java.lang.String value)
getSetDirective in interface IDocumentFormatterpublic java.lang.String getStartIfDirective(java.lang.String fieldName)
getStartIfDirective in interface IDocumentFormatterpublic java.lang.String getStartIfDirectiveIfExists(java.lang.String fieldName)
getStartIfDirectiveIfExists in interface IDocumentFormatterCopyright © 2022. All Rights Reserved.