Package com.adobe.xfa
Class RichTextNode
- java.lang.Object
-
- com.adobe.xfa.Obj
-
- com.adobe.xfa.Node
-
- com.adobe.xfa.Element
-
- com.adobe.xfa.RichTextNode
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.adobe.xfa.Element
Element.DualDomNode, Element.ReplaceContent
-
Nested classes/interfaces inherited from class com.adobe.xfa.Node
Node.ChangeLogger
-
-
Field Summary
-
Fields inherited from class com.adobe.xfa.Element
AttrIsDefault, AttrIsFragment, AttrIsTransient, CREATEACTION
-
Fields inherited from class com.adobe.xfa.Node
CREATE_ALWAYS_NEW, CREATE_IF_NOT_EXIST, CREATE_MUST_NOT_EXIST, CREATE_REPLACE, gsXFANamespacePrefix
-
Fields inherited from interface com.adobe.xfa.ut.Peer
ATTR_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 Summary
Constructors Constructor Description RichTextNode(Element pParent, Node prevSibling)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementcreateProto(Element parent, boolean bFull)voidgetDeltas(Element delta, XFAList list)Gets a collection of deltas to restore.NodegetFirstXFAChild()Gets this element's first XFA child.ScriptTablegetScriptTable()java.lang.StringgetValue(boolean bAsFragment, boolean bSuppressPreamble, boolean bLegacyWhitespaceProcessing)Get the pcData for this node.java.lang.StringgetValuesFromDom(Node node, boolean bAsFragment, boolean bSuppressPreamble, boolean bLegacyWhitespaceProcessing)intgetVersionRequired()booleanisValidChild(int eTag, int nError, boolean bBeforeInsert, boolean bOccurrenceErrorOnly)voidsaveXML(java.io.OutputStream outFile, DOMSaveOptions options, boolean bSaveXMLScript)Serializes this element (and all its children) to an output stream.voidsetValue(java.lang.String sData)Set the pcdata for this node.java.lang.StringtoString()Cast this node to a string value.voidupdateIDValuesImpl(java.lang.String sPrefix, java.util.List<java.lang.String> oldReferenceList)Update a list of ID-based string values in the rich text.booleanvalidateSchema(int nTargetVersion, int nTargetAvailability, boolean bRecursive, java.util.List<NodeValidationInfo> pValidationInfo)Validate this node against the schema.-
Methods inherited from class com.adobe.xfa.Element
appendChild, appendChild, appendPI, appendPI, assignNode, clone, clone, connectPeerToDocument, constructKey, constructKeys, copyContent, defaultAttribute, defaultElement, defaultElement, establishID, evaluate, explodeQName, findAttr, findSchemaAttr, foundBadAttribute, foundBadAttribute, getAll, getAppModel, getAtom, getAttr, getAttribute, getAttribute, getAttributeByName, getAttrIndex, getAttrName, getAttrNS, getAttrProp, getAttrQName, getAttrVal, getChildReln, getClassAll, getClassIndex, getClassName, getElement, getElement, getElementClass, getElementLocal, getEnum, getEnum, getEventTable, getFirstXMLChild, getID, getIndex, getInheritedNS, getInstalledLocale, getIsNull, getLastXMLChild, getLineNumber, getLocalName, getModel, getName, getNode, getNodes, getNodeSchema, getNS, getNumAttrs, getOneOfChild, getOneOfChild, getPI, getPI, getPrefix, getProperty, getProperty, getSaveXMLSaveTransient, getSchemaType, getScriptMethodInfo, getSibling, getText, getXFAChild, getXMLChild, getXMLName, getXPath, getXsiNilAttribute, inhibitPrettyPrint, inhibitPrettyPrint, insertChild, isContainer, isFragment, isHidden, isHidden, isIndexed, isInstalledLocaleAmbient, isLeaf, isNameSpaceAttr, isPropertySpecified, isPropertySpecified, isPropertyValid, isSpecified, isSpecified, isSpecified, isTransient, isTransparent, isValidAttr, isValidElement, loadXML, loadXML, makeDefault, makeNonDefault, newAttribute, optimizeNameSpace, peekAttribute, peekElement, peekOneOfChild, peekProperty, peekProperty, postSave, preSave, privateSetName, processTextChildrenDuringParse, removeAttr, removeAttr, removeChild, removePI, removePI, removeWhiteSpace, removeXsiNilAttribute, replaceChild, resetPostLoadXML, resolveAndEnumerateChildren, resolveNodeCreate, resolvePrefix, saveFilteredXML, saveXML, serialize, setAttribute, setAttribute, setAttribute, setAttribute, setAttrProp, setDefaultFlag, setDOMProperties, setElement, setIsDataWindowRoot, setIsIndexed, setLineNumber, setLocalName, setModel, setName, setNS, setOneOfChild, setProperty, setProperty, setQName, setSaveXMLSaveTransient, setTransparent, setXMLName, setXsiNilAttribute, updateFromPeer
-
Methods inherited from class com.adobe.xfa.Node
checkAncestorPerms, checkDescendentPerms, checkPerms, cleanDirtyFlags, compareVersions, getData, getFirstXMLChildElement, getLocked, getNextXFASibling, getNextXMLSibling, getNextXMLSiblingElement, getNodeAsXML, getOwnerDocument, getPIAsXML, getPIName, getPreviousXMLSibling, getPrivateName, getPropName, getSOMExpression, getSOMExpression, getSomName, getUniqueSOMName, getWillDirty, getXFAChildCount, getXFAParent, getXfaPeer, getXMLChildCount, getXMLParent, hasChanged, isDefault, isDirty, isMapped, isPermsLockSet, isTransient, locateChildByClass, locateChildByName, logValueChangeHelper, notifyPeers, performSOMAssignment, remove, resolveNode, resolveNode, resolveNode, resolveNodes, resolveNodes, sendMessenge, setDirty, setDocument, setLocked, setMapped, setPermsLock, setPrivateName, setWillDirty, setXfaPeer, unLock, validateUsage, validateUsageFailedIsFatal
-
Methods inherited from class com.adobe.xfa.Obj
addPeer, addPeeredNode, clearPeers, deafen, getClassAtom, getClassTag, getPeer, getScriptProperty, getScriptThis, invokeFunction, isDeaf, isMute, isSameClass, isSameClass, isSameClass, mute, peerRemoved, removePeer, removePeeredNode, setClass, setClassTag, setScriptProperty, unDeafen, unMute
-
-
-
-
Method Detail
-
updateIDValuesImpl
public void updateIDValuesImpl(java.lang.String sPrefix, java.util.List<java.lang.String> oldReferenceList)Update a list of ID-based string values in the rich text.
-
getDeltas
public void getDeltas(Element delta, XFAList list)
Description copied from class:ElementGets a collection of deltas to restore. The locale attribute is always restored immediately, and is not returned in the list of deltas.- Overrides:
getDeltasin classElement- Parameters:
delta- an Element from the form packet.list- the list of deltas to be populated.- See Also:
Element.getDeltas(Element, XFAList)
-
getFirstXFAChild
public Node getFirstXFAChild()
Description copied from class:ElementGets this element's first XFA child.- Overrides:
getFirstXFAChildin classElement- Returns:
- the first XFA child.
- See Also:
Element.getFirstXFAChild()
-
getScriptTable
public ScriptTable getScriptTable()
- Overrides:
getScriptTablein classElement
-
getValue
public java.lang.String getValue(boolean bAsFragment, boolean bSuppressPreamble, boolean bLegacyWhitespaceProcessing)Get the pcData for this node.- Parameters:
bAsFragment- if true, it returns a String containing an html fragment, false return only the text content.- Returns:
- the pcData as a string.
-
getValuesFromDom
public java.lang.String getValuesFromDom(Node node, boolean bAsFragment, boolean bSuppressPreamble, boolean bLegacyWhitespaceProcessing)
- Parameters:
node-bAsFragment-bSuppressPreamble-bLegacyWhitespaceProcessing-- Returns:
- gotten values.
-
isValidChild
public boolean isValidChild(int eTag, int nError, boolean bBeforeInsert, boolean bOccurrenceErrorOnly)- Overrides:
isValidChildin classElement- Parameters:
eTag- the class tag of the node that will be or has been appendedbBeforeInsert- iftrue, then the child has not yet been inserted into the child list of this element.- Returns:
trueif eTag is a valid child.- See Also:
Element.isValidChild(int, int, boolean, boolean)
-
setValue
public void setValue(java.lang.String sData)
Set the pcdata for this node.- Parameters:
sData- - a string containing the new pcdata.
-
toString
public java.lang.String toString()
Cast this node to a string value.- Overrides:
toStringin classjava.lang.Object- Returns:
- the string representing the pcdata.
-
validateSchema
public boolean validateSchema(int nTargetVersion, int nTargetAvailability, boolean bRecursive, java.util.List<NodeValidationInfo> pValidationInfo)Description copied from class:NodeValidate this node against the schema.- Overrides:
validateSchemain classNode- Parameters:
nTargetVersion- the target XFA versionnTargetAvailability- a collection of bits defining what subsets of the schema are supportedpValidationInfo- list of invalid children, attributes and attribute values based on the target version and availability. If this node is not valid child of its parent this node will be the first entry of pInfo.- Returns:
- TRUE if this node, the child or all attributes are valid, otherwise FALSE
-
getVersionRequired
public int getVersionRequired()
-
saveXML
public void saveXML(java.io.OutputStream outFile, DOMSaveOptions options, boolean bSaveXMLScript)Serializes this element (and all its children) to an output stream.
-
-