Package com.adobe.xfa.template
Class TemplateModelFactory
java.lang.Object
com.adobe.xfa.ModelFactory
com.adobe.xfa.template.TemplateModelFactory
A class to represent XFA template model factories.
A template model factory is used by an application model
to create a template model where appropriate, when loading an XML file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyFixups(boolean bApply) Indicates whether to apply fixups on the template model after it's been loaded.Create the XML DOM node and the corresponding XFA Model.voidSets an optionvoidsetTemplateResolver(TemplateResolver oResolver) Methods inherited from class com.adobe.xfa.ModelFactory
getAllowAdd, isRootName, rootName
-
Constructor Details
-
TemplateModelFactory
public TemplateModelFactory()Instantiates a template model factory.
-
-
Method Details
-
applyFixups
public void applyFixups(boolean bApply) Indicates whether to apply fixups on the template model after it's been loaded.- Parameters:
bApply- apply fixups when true.
-
createDOM
Description copied from class:ModelFactoryCreate the XML DOM node and the corresponding XFA Model. In C++, this only creates the XML DOM node, and a separate step creates the corresponding Model node. In XFA4J, the we don't have the capability of calling AppModel.loadNode to instantiate an XFA Model from the DOM node, so this method is changed to create the XFA model.- Specified by:
createDOMin classModelFactory- Parameters:
parent- the XFA DOM node that will be the XML parent of the new DOM peer.- Returns:
- the XFA Model that was created.
-
setOption
Description copied from class:ModelFactorySets an option- Overrides:
setOptionin classModelFactory- Parameters:
optionName- - the name of the option.optionValue- - the value of the option.bCritical- - disallow further modification of this option.- See Also:
-
setTemplateResolver
-