Package com.lowagie.text.pdf
Class XfaForm.Xml2SomTemplate
java.lang.Object
com.lowagie.text.pdf.XfaForm.Xml2Som
com.lowagie.text.pdf.XfaForm.Xml2SomTemplate
- Enclosing class:
XfaForm
Processes the template section in the XFA form.
-
Field Summary
FieldsFields inherited from class com.lowagie.text.pdf.XfaForm.Xml2Som
anform, inverseSearch, name2Node, order, stack
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the field type as described in thetemplate
section of the XFA.boolean
true
if it's a dynamic form;false
if it's a static form.private void
processTemplate
(Node n, Map<String, Integer> ff) void
setDynamicForm
(boolean dynamicForm) Sets the dynamic form flag.Methods inherited from class com.lowagie.text.pdf.XfaForm.Xml2Som
addSomNameToSearchNodeChain, escapeSom, getInverseSearchData, getNamesOrder, getNodesByName, getShortName, inverseSearch, inverseSearchAdd, printStack, setInverseSearchData, setNamesOrder, setNodesByName, splitParts, unescapeSom
-
Field Details
-
dynamicForm
private boolean dynamicForm -
templateLevel
private int templateLevel
-
-
Constructor Details
-
Xml2SomTemplate
Creates a new instance from the datasets node.- Parameters:
n
- the template node
-
-
Method Details
-
getFieldType
Gets the field type as described in thetemplate
section of the XFA.- Parameters:
s
- the exact template name- Returns:
- the field type or
null
if not found
-
processTemplate
-
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
-
setDynamicForm
public void setDynamicForm(boolean dynamicForm) Sets the dynamic form flag. It doesn't change the template.- Parameters:
dynamicForm
- the dynamic form flag
-