com.lowagie.text.pdf

Class XfaForm.Xml2SomTemplate

public static class XfaForm.Xml2SomTemplate extends XfaForm.Xml2Som

Processes the template section in the XFA form.
Field Summary
booleandynamicForm
inttemplateLevel
Constructor Summary
Xml2SomTemplate(Node n)
Creates a new instance from the datasets node.
Method Summary
StringgetFieldType(String s)
Gets the field type as described in the template section of the XFA.
booleanisDynamicForm()
true if it's a dynamic form; false if it's a static form.
voidprocessTemplate(Node n, HashMap ff)
voidsetDynamicForm(boolean dynamicForm)
Sets the dynamic form flag.

Field Detail

dynamicForm

private boolean dynamicForm

templateLevel

private int templateLevel

Constructor Detail

Xml2SomTemplate

public Xml2SomTemplate(Node n)
Creates a new instance from the datasets node.

Parameters: n the template node

Method Detail

getFieldType

public String getFieldType(String s)
Gets the field type as described in the template section of the XFA.

Parameters: s the exact template name

Returns: the field type or null if not found

isDynamicForm

public boolean isDynamicForm()
true if it's a dynamic form; false if it's a static form.

Returns: true if it's a dynamic form; false if it's a static form

processTemplate

private void processTemplate(Node n, HashMap ff)

setDynamicForm

public void setDynamicForm(boolean dynamicForm)
Sets the dynamic form flag. It doesn't change the template.

Parameters: dynamicForm the dynamic form flag