Package com.adobe.xfa.content
Class Content
java.lang.Object
com.adobe.xfa.Obj
com.adobe.xfa.Node
com.adobe.xfa.Element
com.adobe.xfa.ProtoableNode
com.adobe.xfa.content.Content
- All Implemented Interfaces:
Peer
- Direct Known Subclasses:
BooleanValue,DateTimeValue,DateValue,DecimalValue,ExDataValue,FloatValue,ImageValue,IntegerValue,RectangleValue,TextValue,TimeValue
Base class for all the XFA types that hold content (integer, text, image etc)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.adobe.xfa.Element
Element.DualDomNode, Element.ReplaceContentNested classes/interfaces inherited from class com.adobe.xfa.Node
Node.ChangeLogger -
Field Summary
Fields inherited from class com.adobe.xfa.Element
AttrIsDefault, AttrIsFragment, AttrIsTransient, CREATEACTIONFields inherited from class com.adobe.xfa.Node
CREATE_ALWAYS_NEW, CREATE_IF_NOT_EXIST, CREATE_MUST_NOT_EXIST, CREATE_REPLACE, gsXFANamespacePrefixFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidappendChild(Node poChild, boolean bValidate) Appends the given child to this element.booleanbooleanEquals is a helper function that returns whether two Contents are equal (case-sensitive, and considering the null state of both nodes).booleanDetermine if this node contains a null value.inthashCode()Returns a hash code value for the object.voidinsertChild(Node poChild, Node poRefNode, boolean bValidate) Inserts a child before a specific child in the child list.voidbooleanThis method is a helper function that returns whether two Contents have the same text value.voidsetIsNull(boolean bNull, boolean bNotify, boolean bDefault) Sets the null state of the nodevoidsetStrValue(String sText, boolean bNotify, boolean bDefault) voidtoString()Return the value of the content as a stringMethods inherited from class com.adobe.xfa.ProtoableNode
clone, createProto, elementGetAttribute, externalProtoFailed, fetchIDValues, getAttribute, getAttributeByName, getElement, getExternalProtoSource, getOneOfChild, getPI, getPI, getProto, getProtoed, getText, hasExternalProto, hasProto, isContextSensitiveAttribute, isDefault, isSpecified, notifyPeers, performResolveProtos, preSave, releaseExternalProtos, reResolveProto, resolveProto, setAttribute, setElement, setOneOfChild, setPermsLock, setProto, updateIDValuesMethods inherited from class com.adobe.xfa.Element
appendChild, appendPI, appendPI, assignNode, clone, connectPeerToDocument, constructKey, constructKeys, copyContent, defaultAttribute, defaultElement, defaultElement, establishID, evaluate, explodeQName, findAttr, findSchemaAttr, foundBadAttribute, foundBadAttribute, getAll, getAppModel, getAtom, getAttr, getAttribute, getAttrIndex, getAttrName, getAttrNS, getAttrProp, getAttrQName, getAttrVal, getChildReln, getClassAll, getClassIndex, getClassName, getDeltas, getElement, getElementClass, getElementLocal, getEnum, getEnum, getEventTable, getFirstXFAChild, getFirstXMLChild, getID, getIndex, getInheritedNS, getInstalledLocale, getLastXMLChild, getLineNumber, getLocalName, getModel, getName, getNode, getNodes, getNodeSchema, getNS, getNumAttrs, getOneOfChild, getPrefix, getProperty, getProperty, getSaveXMLSaveTransient, getSchemaType, getScriptMethodInfo, getSibling, getXFAChild, getXMLChild, getXMLName, getXPath, getXsiNilAttribute, inhibitPrettyPrint, inhibitPrettyPrint, isContainer, isFragment, isHidden, isHidden, isIndexed, isInstalledLocaleAmbient, isLeaf, isNameSpaceAttr, isPropertySpecified, isPropertySpecified, isPropertyValid, isSpecified, isSpecified, isTransient, isTransparent, isValidAttr, isValidChild, isValidElement, loadXML, loadXML, makeDefault, makeNonDefault, newAttribute, optimizeNameSpace, peekAttribute, peekElement, peekOneOfChild, peekProperty, peekProperty, postSave, privateSetName, processTextChildrenDuringParse, removeAttr, removeAttr, removeChild, removePI, removePI, removeWhiteSpace, removeXsiNilAttribute, replaceChild, resolveAndEnumerateChildren, resolveNodeCreate, resolvePrefix, saveFilteredXML, saveXML, saveXML, serialize, setAttribute, setAttribute, setAttribute, setAttrProp, setDefaultFlag, setDOMProperties, setIsDataWindowRoot, setIsIndexed, setLineNumber, setLocalName, setModel, setName, setNS, setProperty, setProperty, setQName, setSaveXMLSaveTransient, setTransparent, setXMLName, setXsiNilAttribute, updateFromPeerMethods 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, isDirty, isMapped, isPermsLockSet, isTransient, locateChildByClass, locateChildByName, logValueChangeHelper, performSOMAssignment, remove, resolveNode, resolveNode, resolveNode, resolveNodes, resolveNodes, sendMessenge, setDirty, setDocument, setLocked, setMapped, setPrivateName, setWillDirty, setXfaPeer, unLock, validateSchema, validateUsage, validateUsageFailedIsFatalMethods 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 Details
-
appendChild
Description copied from class:ElementAppends the given child to this element.- Overrides:
appendChildin classElement- Parameters:
poChild- the child node being appended.bValidate- when true, ensures the given child is valid per the model's schema and throws anExFullif not.
-
couldBeNull
public boolean couldBeNull() -
equals
Equals is a helper function that returns whether two Contents are equal (case-sensitive, and considering the null state of both nodes). -
hashCode
public int hashCode()Returns a hash code value for the object. This method is unsupported. -
getIsNull
public boolean getIsNull()Description copied from class:ElementDetermine if this node contains a null value. -
getStrValue
-
getScriptTable
- Overrides:
getScriptTablein classProtoableNode
-
insertChild
Description copied from class:ElementInserts a child before a specific child in the child list.- Overrides:
insertChildin classElement- Parameters:
poChild- the child to be insertedpoRefNode- the child to insert beforebValidate- if true, validate the insertion
-
resetPostLoadXML
public void resetPostLoadXML()- Overrides:
resetPostLoadXMLin classElement
-
sameText
This method is a helper function that returns whether two Contents have the same text value. For example if you had the following:0 and0 This method will return true, as their content translated to text are the same. (case-sensitive, and considering the IsContentNull setting of both nodes).- Parameters:
compare- - the Content node to compare with- Returns:
- true if the Content nodes are equal
-
setIsNull
public void setIsNull(boolean bNull, boolean bNotify, boolean bDefault) Sets the null state of the node- Parameters:
bNull- if true, set to nullbNotify- if true, notify peers of changebDefault- if false make sure this node is marked as not default
-
setStrValue
-
setValue
-
toString
Return the value of the content as a string
-