|
Docmosis API 4.5.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.docmosis.template.analysis.structure.JSONDummyDataTemplateStructureProcessor
This class creates dummy data based on the content found in a template. It is not aware of some elements available in templates:
variables (eg $top) expressions {abc=def}
Field Summary | |
protected JSONObject |
jsonRoot
|
Constructor Summary | |
JSONDummyDataTemplateStructureProcessor()
|
Method Summary | |
void |
conditionalBegin(TemplateStructureElement section)
Process the start of a conditional section |
void |
conditionalEnd(TemplateStructureElement section)
Process the end of a conditional section |
void |
field(TemplateStructureElement field)
Process a template field. |
void |
finish()
Perform processing for the end of the template structure. |
int |
getnRepeats()
|
void |
image(TemplateStructureElement image)
Process a template image |
boolean |
isIncludeImages()
|
boolean |
repeatBegin(TemplateStructureElement section,
int iterationIdx)
Process the start of a repeating section. |
boolean |
repeatEnd(TemplateStructureElement section,
int iterationIdx)
Process the end of a repeating section |
void |
setIncludeImages(boolean includeImages)
|
void |
setnRepeats(int nRepeats)
|
void |
start()
Perform processing for the beginning of the template structure. |
void |
templateReference(TemplateStructureElement ref)
Process a reference to another template |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected final JSONObject jsonRoot
Constructor Detail |
public JSONDummyDataTemplateStructureProcessor()
Method Detail |
public boolean isIncludeImages()
public void setIncludeImages(boolean includeImages)
public int getnRepeats()
public void setnRepeats(int nRepeats)
public void start()
TemplateStructureProcessor
start
in interface TemplateStructureProcessor
public void finish()
TemplateStructureProcessor
finish
in interface TemplateStructureProcessor
public void field(TemplateStructureElement field)
TemplateStructureProcessor
field
in interface TemplateStructureProcessor
field
- the field detailspublic void image(TemplateStructureElement image)
TemplateStructureProcessor
image
in interface TemplateStructureProcessor
image
- the image detailspublic void templateReference(TemplateStructureElement ref)
TemplateStructureProcessor
templateReference
in interface TemplateStructureProcessor
ref
- the template reference detailspublic boolean repeatBegin(TemplateStructureElement section, int iterationIdx)
TemplateStructureProcessor
repeatBegin
in interface TemplateStructureProcessor
section
- the section detailsiterationIdx
- the index of the iteration of this repeating section
starting at zero
public boolean repeatEnd(TemplateStructureElement section, int iterationIdx)
TemplateStructureProcessor
repeatEnd
in interface TemplateStructureProcessor
section
- the section detailsiterationIdx
- the index of the iteration of this repeating section
starting at zero
public void conditionalBegin(TemplateStructureElement section)
TemplateStructureProcessor
conditionalBegin
in interface TemplateStructureProcessor
section
- the section detailspublic void conditionalEnd(TemplateStructureElement section)
TemplateStructureProcessor
conditionalEnd
in interface TemplateStructureProcessor
section
- the section detailspublic String toString()
|
Docmosis API 4.5.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |