|
Docmosis API 4.1.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) nested ("multi-level") keys (eg person[0].name)
Constructor Summary | |
JSONDummyDataTemplateStructureProcessor()
|
Method Summary | |
void |
conditionalBegin(TemplateStructureElement e)
Process the start of a conditional section |
void |
conditionalEnd(TemplateStructureElement e)
Process the end of a conditional section |
void |
field(TemplateStructureElement e)
Process a template field. |
void |
finish()
Perform processing for the end of the template structure. |
int |
getnRepeats()
|
void |
image(TemplateStructureElement e)
Process a template image |
boolean |
isIncludeImages()
|
boolean |
repeatBegin(TemplateStructureElement e,
int iterationIdx)
Process the start of a repeating section. |
boolean |
repeatEnd(TemplateStructureElement e,
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. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JSONDummyDataTemplateStructureProcessor()
Method Detail |
public int getnRepeats()
public void setnRepeats(int nRepeats)
public boolean isIncludeImages()
public void setIncludeImages(boolean includeImages)
public void start()
TemplateStructureProcessor
start
in interface TemplateStructureProcessor
public void finish()
TemplateStructureProcessor
finish
in interface TemplateStructureProcessor
public void field(TemplateStructureElement e)
TemplateStructureProcessor
field
in interface TemplateStructureProcessor
e
- the field detailspublic void image(TemplateStructureElement e)
TemplateStructureProcessor
image
in interface TemplateStructureProcessor
e
- the image detailspublic boolean repeatBegin(TemplateStructureElement e, int iterationIdx)
TemplateStructureProcessor
repeatBegin
in interface TemplateStructureProcessor
e
- the section detailsiterationIdx
- the index of the iteration of this repeating section
starting at zero
public boolean repeatEnd(TemplateStructureElement e, int iterationIdx)
TemplateStructureProcessor
repeatEnd
in interface TemplateStructureProcessor
e
- the section detailsiterationIdx
- the index of the iteration of this repeating section
starting at zero
public void conditionalBegin(TemplateStructureElement e)
TemplateStructureProcessor
conditionalBegin
in interface TemplateStructureProcessor
e
- the section detailspublic void conditionalEnd(TemplateStructureElement e)
TemplateStructureProcessor
conditionalEnd
in interface TemplateStructureProcessor
e
- the section detailspublic String toString()
|
Docmosis API 4.1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |