public final class AppModel extends Model implements Model.DualDomModel
Example:
xfa <- this is the AppModel
datasets <- this is the XFADataModel
data <- this is $data in SOM expressions (a datagroup)| Modifier and Type | Class and Description |
|---|---|
static class |
AppModel.LegacyMask |
Model.DualDomModel, Model.PublisherElement.DualDomNode, Element.ReplaceContentNode.ChangeLoggerAttrIsDefault, AttrIsFragment, AttrIsTransient, CREATEACTIONCREATE_ALWAYS_NEW, CREATE_IF_NOT_EXIST, CREATE_MUST_NOT_EXIST, CREATE_REPLACE, gsXFANamespacePrefixATTR_CHANGED, CHILD_ADDED, CHILD_REMOVED, DESCENDENT_ADDED, DESCENDENT_ATTR_CHANGED, DESCENDENT_REMOVED, DESCENDENT_VALUE_CHANGED, PARENT_CHANGED, PERMS_LOCK_CLEARED, PERMS_LOCK_SET, PROTO_ATTR_CHANGED, PROTO_CHILD_ADDED, PROTO_CHILD_REMOVED, PROTO_DESCENDENT_ADDED, PROTO_DESCENDENT_ATTR_CHANGED, PROTO_DESCENDENT_REMOVED, PROTO_DESCENDENT_VALUE_CHANGED, PROTO_VALUE_CHANGED, UPDATED, VALUE_CHANGED| Constructor and Description |
|---|
AppModel(LogMessenger messenger)
Instantiates an app model with the given messenger.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFactory(ModelFactory factory)
Adds a model factory to the list of registered factories.
|
void |
addPseudoModel(String sShortCutName,
Obj obj)
Makes an object visible to the global scripting namespace.
|
void |
addScriptHandler(ScriptHandler handler)
Adds (registers) a script handler for this app model.
|
void |
appendChild(Node newChild,
boolean bValidate)
Appends the given child to this element.
|
boolean |
bumpVersionOnRichTextLoad()
Gets a boolean which indicates whether the XFA version should be bumped when loading rich text
containing features not supported by the form's current version.
|
void |
bumpVersionOnRichTextLoad(boolean bBumpVersion)
Sets a boolean which indicates whether the XFA version should be bumped when loading rich text
containing features not supported by the form's current version.
|
void |
clearErrorList()
Clears this app model's current list of errors.
|
void |
clearScriptingContexts()
Clears any scripting contexts associated with all script
handlers previously registered with this app model.
|
Element |
createElement(Element parent,
Node prevSibling,
String uri,
String localName,
String qName,
Attributes attributes,
int lineNumber,
String fileName)
Creates an element with the given parent, sibling, namespace uri,
local name and SAX attributes.
|
Node |
createNode(int eTag,
Element parent,
String aName,
String aNS,
boolean bDoVersionCheck)
Create an element with the given tag, parent, name and uri.
|
DependencyTracker |
dependencyTracker() |
void |
dependencyTracker(DependencyTracker oDependencyTracker) |
List<ModelFactory> |
factories()
Returns the list of registered factories.
|
boolean |
getAllowThirdPartyXml() |
Attribute |
getAttribute(int eAttributeTag)
get an attribute value, will return the default attribute value
if none exist NON validating
|
String |
getBaseNS() |
ScriptDynamicPropObj |
getDynamicScriptProp(String sPropertyName,
boolean bPropertyOverride,
boolean bPeek)
if bPeek, return a function in oDesc that won't create any objects if
called, and return FALSE if the property isn't specified.
|
List<Element> |
getErrorContextList()
Gets all the context nodes that correspond to entries in the error list.
|
List<ExFull> |
getErrorList()
Gets all the errors that have been generated by this app model
since the last method call to clear the error list.
|
EventManager |
getEventManager()
the EventManager manages xfe:script scripts and their
associated events (ie.
|
boolean |
getExternalProtosAreTransient()
Determines whether external proto fragments are marked as transient when
they are resolved.
|
List<String> |
getFragmentSearchPath()
return the fragment search path.
|
String |
getHeadNS() |
HrefHandler |
getHrefHandler()
Gets the current
HrefService handler. |
boolean |
getIsFragmentDoc()
indicate whether this AppModel is used as a source for template fragments
|
boolean |
getLegacySetting(AppModel.LegacyMask nLegacyFlag)
Gets the boolean value of a particular legacy setting.
|
LogMessenger |
getLogMessenger()
Get the XFALogMessenger object.The XFALogMessenger object can be used to add or delete
to the XFALogMessageHandlers active with the AppModel.
|
String |
getNS()
Gets this element's namespace.
|
int |
getOutputBelow() |
String |
getPacketList()
Gets the list of XFA packets to filter.
|
Node |
getPreviousXMLSibling()
Gets this node's previous XML sibling.
|
int |
getSchemaType(int eTag) |
List<ScriptHandler> |
getScriptHandlers()
Gets the list of script handlers registered with this app model.
|
ScriptTable |
getScriptTable() |
int |
getSourceBelow() |
int |
getVersionRestriction() |
boolean |
getWillDirty() |
static boolean |
includePacket(String aPacketName,
String sInList)
Determines if a packet should be included based on a packet list.
|
void |
insertChild(Node newChild,
Node refChild,
boolean bValidate)
Inserts a child before a specific child in the child list.
|
boolean |
isValidAttr(int eTag,
boolean bReport,
String value)
Determine if a specified attribute tag is valid for this node.
|
boolean |
isValidChild(int eTag,
int nError,
boolean bBeforeInsert,
boolean bOccurrenceErrorOnly) |
static boolean |
isXFANode(Element node)
Is the given element the root node of an XDP document.
|
boolean |
isXFANode(String uri,
String localName,
String qName)
Is this element the root node of an XDP document.
|
Obj |
lookupPseudoModel(String sShortCutName)
Looks up a scripting object registered with the global scripting namespace.
|
Element |
newDOM()
Creates a new node hierarchy of a new XFA DOM.
|
void |
preSave(boolean bSaveXMLScript)
Prepares this
Model to be saved. |
boolean |
publish(Model.Publisher publisher)
Publish the model to an Application Storage facility.
|
boolean |
ready(boolean bForced)
Indicates that the model is ready.
|
void |
removePseudoModel(String sShortCutName)
Removes a scripting object shortcut from the
global scripting namespace.
|
void |
setAttribute(Attribute oValue,
int eAttributeTag)
Sets the value of an attribute
|
void |
setExternalProtosAreTransient(boolean bExternalProtosAreTransient)
Determines whether external proto fragments are marked as transient when
they are resolved.
|
void |
setFragmentSearchPath(List<String> oSearchPath)
Set the fragment search path.
|
void |
setHrefHandler(HrefHandler handler)
Sets the
HrefService handler associated with this AppModel. |
void |
setIsFragmentDoc(boolean bIsFragmentDoc)
flag this AppModel as being a source for template fragments (or not)
|
void |
setPacketHandler(PacketHandler oPacketHandler,
Object oHandlerData)
Sets this app model's packet handler.
|
void |
setPacketList(String sPackets)
Sets the list of XFA packets to filter.
|
void |
setResolveAllExternalProtos(boolean bResolveAllExternalProtos) |
void |
setSourceAbove(int eSouceAbove) |
void |
setSourceBelow(int eSouceBelow) |
void |
setVersionRestriction(int nVersion,
int eOutputBelow) |
void |
setWillDirty(boolean bWillDirty) |
boolean |
updateOriginalVersion()
Get a boolean that indicates if the originalXFAVersion processing
instruction should be updated when each XFA Model child is saved.
|
void |
updateOriginalVersion(boolean bUpdate)
Set a boolean that indicates if the originalXFAVersion processing
instruction should be updated when each XFA Model child is saved.
|
addErrorList, addUseHRefNode, addUseNode, addXMLLoadErrorContext, allowUpdates, checkforCompatibleNS, clone, createElement, createElement, createElement, createElement, createTextNode, createTextNode, doAttributeCleanup, getAliasNode, getAppModel, getAppModelIsTransient, getCachedLocale, getContext, getCurrentVersion, getDelta, getDeltas, getDocument, getGenerator, getHeadVersion, getIDValueMap, getName, getNeedsNSNormalize, getNode, getOriginalVersion, getOriginalVersionNode, getOriginalXFAVersion, getProtoList, getSchema, getVersion, getXmlPeer, isCompatibleNS, isContainer, isLoading, isVersionCompatible, loadNode, loadRootAttributes, loadSpecialAttribute, loadSpecialNode, modelCleanup, nodeCleanup, normalizeNameSpaces, normalizeNameSpaces, normalizeNameSpaces, preLoadNode, remapTag, remove, removeLastError, removeReferences, resolveNodes, resolveProtos, serialize, setAliasNode, setAppModel, setAppModelIsTransient, setContext, setCurrentVersion, setDOMProperties, setIDValueMap, setName, setNeedsNSNormalize, setOriginalXFAVersion, setXmlPeer, shortCutName, validateUsage, validateUsageFailedIsFatal, willDirtyDoc, willDirtyDocappendChild, appendPI, appendPI, assignNode, clone, connectPeerToDocument, constructKey, constructKeys, copyContent, defaultAttribute, defaultElement, defaultElement, establishID, evaluate, explodeQName, findAttr, findSchemaAttr, foundBadAttribute, foundBadAttribute, getAll, getAtom, getAttr, getAttribute, getAttributeByName, getAttrIndex, getAttrName, getAttrNS, getAttrProp, getAttrQName, getAttrVal, getChildReln, getClassAll, getClassIndex, getClassName, getDeltas, getElement, getElement, getElementClass, getElementLocal, getEnum, getEnum, getEventTable, getFirstXFAChild, getFirstXMLChild, getID, getIndex, getInheritedNS, getInstalledLocale, getIsNull, getLastXMLChild, getLineNumber, getLocalName, getModel, getNode, getNodes, getNodeSchema, getNumAttrs, getOneOfChild, getOneOfChild, getPI, getPI, getPrefix, getProperty, getProperty, getSaveXMLSaveTransient, getScriptMethodInfo, getSibling, getText, getXFAChild, getXMLChild, getXMLName, getXPath, getXsiNilAttribute, inhibitPrettyPrint, inhibitPrettyPrint, isFragment, isHidden, isHidden, isIndexed, isInstalledLocaleAmbient, isLeaf, isNameSpaceAttr, isPropertySpecified, isPropertySpecified, isPropertyValid, isSpecified, isSpecified, isSpecified, isTransient, isTransparent, isValidElement, loadXML, loadXML, makeDefault, makeNonDefault, newAttribute, optimizeNameSpace, peekAttribute, peekElement, peekOneOfChild, peekProperty, peekProperty, postSave, privateSetName, processTextChildrenDuringParse, removeAttr, removeAttr, removeChild, removePI, removePI, removeWhiteSpace, removeXsiNilAttribute, replaceChild, resetPostLoadXML, resolveAndEnumerateChildren, resolveNodeCreate, resolvePrefix, saveFilteredXML, saveXML, saveXML, setAttribute, setAttribute, setAttribute, setAttrProp, setDefaultFlag, setElement, setIsDataWindowRoot, setIsIndexed, setLineNumber, setLocalName, setModel, setNS, setOneOfChild, setProperty, setProperty, setQName, setSaveXMLSaveTransient, setTransparent, setXMLName, setXsiNilAttribute, updateFromPeercheckAncestorPerms, checkDescendentPerms, checkPerms, cleanDirtyFlags, compareVersions, getData, getFirstXMLChildElement, getLocked, getNextXFASibling, getNextXMLSibling, getNextXMLSiblingElement, getNodeAsXML, getOwnerDocument, getPIAsXML, getPIName, getPrivateName, getPropName, getSOMExpression, getSOMExpression, getSomName, getUniqueSOMName, getXFAChildCount, getXFAParent, getXfaPeer, getXMLChildCount, getXMLParent, hasChanged, isDefault, isDirty, isMapped, isPermsLockSet, isTransient, locateChildByClass, locateChildByName, logValueChangeHelper, notifyPeers, performSOMAssignment, resolveNode, resolveNode, resolveNode, resolveNodes, sendMessenge, setDirty, setDocument, setLocked, setMapped, setPermsLock, setPrivateName, setXfaPeer, unLock, validateSchemaaddPeer, addPeeredNode, clearPeers, deafen, getClassAtom, getClassTag, getPeer, getScriptProperty, getScriptThis, invokeFunction, isDeaf, isMute, isSameClass, isSameClass, isSameClass, mute, peerRemoved, removePeer, removePeeredNode, setClass, setClassTag, setScriptProperty, unDeafen, unMutepublic static final AppModel.LegacyMask XFA_LEGACY_POSITIONING
public static final AppModel.LegacyMask XFA_LEGACY_EVENTMODEL
public static final AppModel.LegacyMask XFA_LEGACY_PLUSPRINT
public static final AppModel.LegacyMask XFA_LEGACY_PERMISSIONS
public static final AppModel.LegacyMask XFA_LEGACY_CALCOVERRIDE
public static final AppModel.LegacyMask XFA_LEGACY_RENDERING
public static final AppModel.LegacyMask XFA_LEGACY_V26_HIDDENPOSITIONED
public static final AppModel.LegacyMask XFA_LEGACY_V27_MULTIRECORDCONTEXTCACHE
public static final AppModel.LegacyMask XFA_LEGACY_V27_LAYOUT
public static final AppModel.LegacyMask XFA_LEGACY_V27_SCRIPTING
public static final AppModel.LegacyMask XFA_LEGACY_V27_EVENTMODEL
public static final AppModel.LegacyMask XFA_LEGACY_V27_TRAVERSALORDER
public static final AppModel.LegacyMask XFA_LEGACY_V27_XHTMLVERSIONPROCESSING
public static final AppModel.LegacyMask XFA_LEGACY_V27_ACCESSIBILITY
public static final AppModel.LegacyMask XFA_LEGACY_V28_LAYOUT
public static final AppModel.LegacyMask XFA_LEGACY_V28_SCRIPTING
public static final AppModel.LegacyMask XFA_LEGACY_V29_LAYOUT
public static final AppModel.LegacyMask XFA_LEGACY_V29_SCRIPTING
public static final AppModel.LegacyMask XFA_LEGACY_V30_LAYOUT
public static final AppModel.LegacyMask XFA_LEGACY_V30_SCRIPTING
public static final AppModel.LegacyMask XFA_LEGACY_V29_TRAVERSALORDER
public static final AppModel.LegacyMask XFA_PATCH_B_02518
public static final AppModel.LegacyMask XFA_LEGACY_V29_FIELDPRESENCE
public static final AppModel.LegacyMask XFA_PATCH_W_2393121
public static final AppModel.LegacyMask XFA_PATCH_W_2447677
public static final AppModel.LegacyMask XFA_LEGACY_V32_SCRIPTING
public static final AppModel.LegacyMask XFA_LEGACY_V31_LAYOUT
public static final AppModel.LegacyMask XFA_LEGACY_V32_LAYOUT
public static final AppModel.LegacyMask XFA_LEGACY_V32_RENDERING
public static final AppModel.LegacyMask XFA_LEGACY_V32_CANONICALIZATION
public static final AppModel.LegacyMask XFA_PATCH_W_2757988
public static final AppModel.LegacyMask XFA_LEGACY_35_DEFAULT
public static final AppModel.LegacyMask XFA_LEGACY_HEAD_DEFAULT
public static final AppModel.LegacyMask XFA_LEGACY_34_DEFAULT
public static final AppModel.LegacyMask XFA_LEGACY_33_DEFAULT
public static final AppModel.LegacyMask XFA_LEGACY_32_DEFAULT
public static final AppModel.LegacyMask XFA_LEGACY_31_DEFAULT
public static final AppModel.LegacyMask XFA_LEGACY_30_DEFAULT
public static final AppModel.LegacyMask XFA_LEGACY_29_DEFAULT
public static final AppModel.LegacyMask XFA_LEGACY_28_DEFAULT
public static final AppModel.LegacyMask XFA_LEGACY_27_DEFAULT
public static final AppModel.LegacyMask XFA_LEGACY_26_DEFAULT
public static final AppModel.LegacyMask XFA_LEGACY_25_DEFAULT
public static final AppModel.LegacyMask XFA_LEGACY_24_DEFAULT
public static final AppModel.LegacyMask XFA_LEGACY_23_DEFAULT
public static final AppModel.LegacyMask XFA_LEGACY_22_DEFAULT
public static final AppModel.LegacyMask XFA_LEGACY_21_DEFAULT
public static final AppModel.LegacyMask XFA_LEGACY_21_DEPRECATED
public static final AppModel.LegacyMask XFA_LEGACY_22_DEPRECATED
public static final AppModel.LegacyMask XFA_LEGACY_23_DEPRECATED
public static final AppModel.LegacyMask XFA_LEGACY_24_DEPRECATED
public static final AppModel.LegacyMask XFA_LEGACY_25_DEPRECATED
public static final AppModel.LegacyMask XFA_LEGACY_26_DEPRECATED
public static final AppModel.LegacyMask XFA_LEGACY_27_DEPRECATED
public static final AppModel.LegacyMask XFA_LEGACY_28_DEPRECATED
public static final AppModel.LegacyMask XFA_LEGACY_29_DEPRECATED
public static final AppModel.LegacyMask XFA_LEGACY_30_DEPRECATED
public static final AppModel.LegacyMask XFA_LEGACY_31_DEPRECATED
public static final AppModel.LegacyMask XFA_LEGACY_32_DEPRECATED
public static final AppModel.LegacyMask XFA_LEGACY_33_DEPRECATED
public static final AppModel.LegacyMask XFA_LEGACY_34_DEPRECATED
public static final AppModel.LegacyMask XFA_LEGACY_35_DEPRECATED
public static final AppModel.LegacyMask XFA_LEGACY_HEAD_DEPRECATED
public AppModel(LogMessenger messenger)
messenger - a log messenger, if any.public static boolean includePacket(String aPacketName, String sInList)
aPacketName - the packet to test forsInList - the list of packetspublic void addFactory(ModelFactory factory)
Factories are added for models that are to be loaded with a full implementation. If no model is explicitly added, a default model with minimal functionality will be used.
factory - the factory to add.public void addPseudoModel(String sShortCutName, Obj obj)
obj parameter will typically be derived
from PseudoModel.
The shortcut name must start with a dollar sign ($).
For example, an application might use this method to
add an object derived from HostPseudoModel and
register it with the name $host.sShortCutName - the name of the scripting object.obj - the scriptable objectremovePseudoModel(String)public void addScriptHandler(ScriptHandler handler)
handler - the script handler to add.public void clearScriptingContexts()
addScriptHandler(ScriptHandler)public boolean bumpVersionOnRichTextLoad()
false by default.
Only Designer is expected to make use of this flag.true if version bumping is enabled for rich text loading.public void bumpVersionOnRichTextLoad(boolean bBumpVersion)
false by default.
Only Designer is expected to make use of this flagbBumpVersion - true to enable version bumping when loading rich text.public void appendChild(Node newChild, boolean bValidate)
ElementappendChild in class ElementnewChild - the child node being appended.bValidate - when true, ensures the given child is valid
per the model's schema and throws an ExFull if not.Element.appendChild(Node, boolean)public void clearErrorList()
clearErrorList in class ModelModel.clearErrorList()public Node createNode(int eTag, Element parent, String aName, String aNS, boolean bDoVersionCheck)
ModelcreateNode in class ModeleTag - the element's tag.parent - the element's parent.aName - the element's name.aNS - the element's namespace.bDoVersionCheck - check the element's version.Model.createNode(int, Element, String, String, boolean)public Element createElement(Element parent, Node prevSibling, String uri, String localName, String qName, Attributes attributes, int lineNumber, String fileName)
ModelcreateElement in class Modelparent - the element's parent, if any.prevSibling - the element's previous sibling, if any.uri - the element's namespace. This string must be interned.localName - the element's name. This string must be interned.qName - the element's qualified name. This string must be interned.attributes - the element's (SAX) attribute definitions.Model.createElement(Element, Node, String, String, String, Attributes, int, String)public DependencyTracker dependencyTracker()
public void dependencyTracker(DependencyTracker oDependencyTracker)
public boolean getAllowThirdPartyXml()
public List<ModelFactory> factories()
public Attribute getAttribute(int eAttributeTag)
getAttribute in class Elementpublic ScriptDynamicPropObj getDynamicScriptProp(String sPropertyName, boolean bPropertyOverride, boolean bPeek)
Objpublic List<Element> getErrorContextList()
getErrorContextList in class Modelpublic List<ExFull> getErrorList()
getErrorList in class ModelExFull error objects.public EventManager getEventManager()
getEventManager in class Modelpublic boolean getExternalProtosAreTransient()
DOMSaveOptions.setSaveFragment(boolean) setting controls whether
resolved fragments are included when the model is serialized. The default
is false which means that resolved fragments are always
serialized.
This flag is only relevant if
setHrefHandler(HrefHandler) has been called.true if external fragments should be transient (i.e.
left as references when serialized), or false if
they should be non-transient (i.e. expanded when serialized).setExternalProtosAreTransient(boolean)public List<String> getFragmentSearchPath()
public HrefHandler getHrefHandler()
HrefService handler.HrefService handler associated with the AppModel.public boolean getIsFragmentDoc()
public boolean getLegacySetting(AppModel.LegacyMask nLegacyFlag)
ModelgetLegacySetting in class ModelnLegacyFlag - the specific legacy setting to checktrue if the legacy setting is set, or is the default the original version.Model.getLegacySetting(AppModel.LegacyMask)public LogMessenger getLogMessenger()
getLogMessenger in class Modelpublic String getNS()
ElementgetNS in class ModelElement.getNS()public int getOutputBelow()
public String getPacketList()
public Node getPreviousXMLSibling()
NodegetPreviousXMLSibling in class NodeNode.getPreviousXMLSibling()public int getSchemaType(int eTag)
getSchemaType in class Elementpublic List<ScriptHandler> getScriptHandlers()
addScriptHandler(ScriptHandler).public ScriptTable getScriptTable()
getScriptTable in class Modelpublic int getSourceBelow()
getSourceBelow in class ModelModel.getSourceBelow()public int getVersionRestriction()
public boolean getWillDirty()
getWillDirty in class Nodepublic void insertChild(Node newChild, Node refChild, boolean bValidate)
ElementinsertChild in class ElementnewChild - the child to be insertedrefChild - the child to insert beforebValidate - if true, validate the insertionElement.insertChild(Node, Node, boolean)public boolean isValidAttr(int eTag,
boolean bReport,
String value)
ElementisValidAttr in class ElementeTag - the XFA tag to checkElement.isValidAttr(int, boolean, String)public boolean isValidChild(int eTag,
int nError,
boolean bBeforeInsert,
boolean bOccurrenceErrorOnly)
isValidChild in class ElementeTag - the class tag of the node that will be or has been appendedbBeforeInsert - if true, then the child has not yet been inserted
into the child list of this element.true if eTag is a valid child.Element.isValidChild(int, int, boolean, boolean)public boolean isXFANode(String uri, String localName, String qName)
uri - the namespace of this elementlocalName - the local name of this elementqName - the qualified name of this elementpublic static boolean isXFANode(Element node)
public Obj lookupPseudoModel(String sShortCutName)
sShortCutName - the scripting shortcut name.PseudoModel), or
null if not found.public Element newDOM()
AppModel. The children that this
node has depends on which factories have been added via
addFactory().
Each installed factory will create some default node or tree of nodes
under the AppModel node.public void preSave(boolean bSaveXMLScript)
ModelModel to be saved. Any model maintenance that
may have been deferred is performed to ensure that the serialized form of
the Model is correct. This method is called automatically
before a Model is serialized to a stream, so it does not
normally need to be called directly. The exception is when a
Document is saved using
Document.saveAs(java.io.OutputStream, Node, DOMSaveOptions) or
Document.saveXML(java.io.OutputStream, DOMSaveOptions).preSave in class ModelNode.preSave(boolean)public boolean ready(boolean bForced)
ModelAppModel, this
call recursively calls ready() on each child
model (as a convenience). Some applications may choose to call
the ready() on each model individually. Calling
ready() a second time on a given model has no
effect.public boolean publish(Model.Publisher publisher)
Modelpublish in class Modelpublisher - an instance of a class derived from TemplateModel.Publisher.Model.publish(com.adobe.xfa.Model.Publisher)public void removePseudoModel(String sShortCutName)
sShortCutName - the shortcut name of a scripting objectaddPseudoModel(String, Obj)public void setAttribute(Attribute oValue, int eAttributeTag)
setAttribute in class ElementoValue - the attribute.eAttributeTag - The XFA tag name of the attribute being set.public void setExternalProtosAreTransient(boolean bExternalProtosAreTransient)
DOMSaveOptions.setSaveFragment(boolean) setting controls whether
resolved fragments are included when the model is serialized. The default
is false which means that resolved fragments are always
serialized.
This flag is only relevant if
setHrefHandler(HrefHandler) has been called.bExternalProtosAreTransient - true if external fragments should be transient
(i.e. left as references when serialized), or
false if they should be non-transient (i.e.
expanded when serialized).getExternalProtosAreTransient(),
setHrefHandler(HrefHandler)public void setFragmentSearchPath(List<String> oSearchPath)
oSearchPath - fragment search pathpublic void setHrefHandler(HrefHandler handler)
HrefService handler associated with this AppModel.handler - the HrefService handler.
The href service handles the URL resolution and fragment loading for all
usehref attribute values on ProtoableNodes.
public void setIsFragmentDoc(boolean bIsFragmentDoc)
bIsFragmentDoc - true if this is a source for template fragments.public void setPacketHandler(PacketHandler oPacketHandler, Object oHandlerData)
oPacketHandler - a packet handler.oHandlerData - some handler data.public void setPacketList(String sPackets)
sPackets - the packet list.public void setResolveAllExternalProtos(boolean bResolveAllExternalProtos)
public void setSourceAbove(int eSouceAbove)
public void setSourceBelow(int eSouceBelow)
public void setVersionRestriction(int nVersion,
int eOutputBelow)
public void setWillDirty(boolean bWillDirty)
setWillDirty in class Nodepublic boolean updateOriginalVersion()
public void updateOriginalVersion(boolean bUpdate)
bUpdate - -
TRUE if the processing instruction should be updated,
otherwise FALSE.
This function is only for Designer so when they create a
new document they can avoid creating the originalXFAVersion.Copyright © 2010 - 2020 Adobe. All Rights Reserved