XFA4J

com.adobe.xfa.data
Class DataModel

java.lang.Object
  extended by com.adobe.xfa.Obj
      extended by com.adobe.xfa.Node
          extended by com.adobe.xfa.Element
              extended by com.adobe.xfa.Model
                  extended by com.adobe.xfa.data.DataModel

public final class DataModel
extends Model

A class to model the collection of all XFA nodes that make up form data.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.adobe.xfa.Node
Node.ChangeLogger
 
Field Summary
 
Fields inherited from class com.adobe.xfa.Node
CREATE_ALWAYS_NEW, CREATE_IF_NOT_EXIST, CREATE_MUST_NOT_EXIST, CREATE_REPLACE
 
Method Summary
static DataModel getDataModel(AppModel app, boolean bCreateIfNotFound, boolean bAppend)
          Gets the data model held within an XFA DOM hierarchy.
 void remove()
          Removes this node from its parent child list.
 
Methods inherited from class com.adobe.xfa.Model
clearErrorList, createElement, createElement, createElement, createTextNode, getCurrentVersion, getDocument, getErrorContextList, getErrorList, normalizeNameSpaces, resolveNodes
 
Methods inherited from class com.adobe.xfa.Element
appendChild, assignNode, getAttr, getAttribute, getElement, getFirstXFAChild, getFirstXMLChild, getInstalledLocale, getLastXMLChild, getModel, getName, getNodes, getNS, getNumAttrs, getPrefix, getText, getXFAChild, getXMLChild, isInstalledLocaleAmbient, loadXML, saveXML, setAttribute, setAttribute, setAttribute, setLocalName, setName, setNS, setQName
 
Methods inherited from class com.adobe.xfa.Node
checkAncestorPerms, checkDescendentPerms, checkPerms, cleanDirtyFlags, compareVersions, getData, getDynamicScriptProp, getNextXFASibling, getNextXMLSibling, getOwnerDocument, getPreviousXMLSibling, getSOMExpression, getXFAChildCount, getXFAParent, getXMLChildCount, getXMLParent, hasChanged, resolveNode, resolveNode, resolveNodes, setNextXMLSibling, setPermsLock, setXMLParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDataModel

public static DataModel getDataModel(AppModel app,
                                     boolean bCreateIfNotFound,
                                     boolean bAppend)
Gets the data model held within an XFA DOM hierarchy.

Parameters:
app - the application model.
bCreateIfNotFound - when true, create a data model if needed.
bAppend - when true, append any underling xml to the xfa root element when loading, and when false, create orphan xfa:datasets and xfa:data nodes. This behaviour occurs only works when bCreateIfNotFound is set to true.
Returns:
the data model, or null if none found.

remove

public void remove()
Description copied from class: Node
Removes this node from its parent child list.

Overrides:
remove in class Model
See Also:
Node.remove()

XFA4J

© 2005 Adobe Systems Incorporated. All Rights Reserved.