|
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.SimpleXMLTemplateStructureProcessor
This class can process a template structure and then output the template information in an XML format. This allows automated processes to use the Docmosis template to drive various things including building input web-forms or sample/data processes. After the processor has been used by the TemplateStructureExtractor, call the toString() function to get the XML structure. For example:
TemplateIdentifier templateId = new TemplateIdentifier("myTemplate1.doc"); SimpleXMLTemplateStructureProcessor xmlProcessor = new SimpleXMLTemplateStructureProcessor(); TemplateStructureExtractor.process(xmlProcessor, templateId); System.out.println(xmlProcessor.toString());
Constructor Summary | |
SimpleXMLTemplateStructureProcessor()
|
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. |
void |
image(TemplateStructureElement e)
Process a template image |
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 |
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 SimpleXMLTemplateStructureProcessor()
Method Detail |
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 |