|
XFA4J | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.adobe.xfa.Obj
com.adobe.xfa.Node
com.adobe.xfa.Element
com.adobe.xfa.Model
public abstract class Model
An abstract class from which to derive all other models.
| 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 | |
|---|---|
void |
clearErrorList()
Clears the model's current list of errors. |
Element |
createElement(Element parent,
Node prevSibling,
java.lang.String uri,
java.lang.String qName)
Creates an element with the given parent, previous sibling, namespace uri and qualified name. |
Element |
createElement(int eTag,
java.lang.String name)
Create an element with the given element tag and name. |
Element |
createElement(java.lang.String className,
java.lang.String name,
Element parent)
Creates an element with the given class, name and parent. |
TextNode |
createTextNode(Element parent,
Node prevSibling,
java.lang.String text)
Creates a text node with the given text. |
int |
getCurrentVersion()
Gets the current version of this model. |
Document |
getDocument()
Returns this model's document. |
java.util.List<Element> |
getErrorContextList()
Gets all the context nodes that correspond to entries in the error list. |
java.util.List<ExFull> |
getErrorList()
Gets all the errors that have been generated by this model since the last method call to clear the error list. |
boolean |
normalizeNameSpaces(int nTargetVersion,
java.util.List<NodeValidationInfo> oResult)
Walks through the XFA DOM and normalizes the namespaces of all the nodes. |
NodeList |
resolveNodes(java.lang.String somNodes,
boolean bPeek,
boolean bLastInstance,
boolean bNoProperties,
DependencyTracker oDependencyTracker,
BooleanHolder isAssociation)
Evaluates the Scripting Object Model expression, using this node as the current context. |
| 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, remove, 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 |
|---|
public void clearErrorList()
public Element createElement(Element parent,
Node prevSibling,
java.lang.String uri,
java.lang.String qName)
parent - the element's parent, if any.prevSibling - the element's previous sibling, if any.uri - the element's namespace URI. This string must be interned.qName - the element's qualified name. This string must be interned.
public final Element createElement(int eTag,
java.lang.String name)
eTag - the element's tag.name - the element's name, if known. This string must be interned.
public final Element createElement(java.lang.String className,
java.lang.String name,
Element parent)
className - the element's class name. This string must be interned.name - the element's name, if known. This string must be interned.parent - the element's parent.
public final TextNode createTextNode(Element parent,
Node prevSibling,
java.lang.String text)
parent - the node's parent, if any.prevSibling - the node's previous sibling, if any.text - the node's text.
public int getCurrentVersion()
public final Document getDocument()
public java.util.List<Element> getErrorContextList()
public java.util.List<ExFull> getErrorList()
ExFull error objects.
public boolean normalizeNameSpaces(int nTargetVersion,
java.util.List<NodeValidationInfo> oResult)
nTargetVersion - the version of the schema desired. One of
XFAVERSION_10, ...
XFAVERSION_HEAD.oResult - a list of NodeValidationInfo objects:
invalid children, attributes and attribute values based upon the
target version. If this model is not a valid child of its
parent, this model will be the first entry of oResult.
If oResult is not null, this method will ensure all child nodes
attributes and attribute values are valid for given the target
version.
public NodeList resolveNodes(java.lang.String somNodes,
boolean bPeek,
boolean bLastInstance,
boolean bNoProperties,
DependencyTracker oDependencyTracker,
BooleanHolder isAssociation)
Node
resolveNodes in class NodeNode.resolveNodes(String, boolean, boolean, boolean)
|
XFA4J | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||