|
Docmosis API 4.9.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
public class 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 org.json.com.docmosis.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 org.json.com.docmosis.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 TemplateStructureProcessorpublic void finish()
TemplateStructureProcessor
finish in interface TemplateStructureProcessorpublic void field(TemplateStructureElement field)
TemplateStructureProcessor
field in interface TemplateStructureProcessorfield - the field detailspublic void image(TemplateStructureElement image)
TemplateStructureProcessor
image in interface TemplateStructureProcessorimage - the image detailspublic void templateReference(TemplateStructureElement ref)
TemplateStructureProcessor
templateReference in interface TemplateStructureProcessorref - the template reference details
public boolean repeatBegin(TemplateStructureElement section,
int iterationIdx)
TemplateStructureProcessor
repeatBegin in interface TemplateStructureProcessorsection - 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 TemplateStructureProcessorsection - the section detailsiterationIdx - the index of the iteration of this repeating section
starting at zero
public void conditionalBegin(TemplateStructureElement section)
TemplateStructureProcessor
conditionalBegin in interface TemplateStructureProcessorsection - the section detailspublic void conditionalEnd(TemplateStructureElement section)
TemplateStructureProcessor
conditionalEnd in interface TemplateStructureProcessorsection - the section detailspublic String toString()
toString in class Object
|
Docmosis API 4.9.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||