public final class DataNode extends Element implements Element.DualDomNode
Element.DualDomNode, Element.ReplaceContent
Node.ChangeLogger
AttrIsDefault, AttrIsFragment, AttrIsTransient, CREATEACTION
CREATE_ALWAYS_NEW, CREATE_IF_NOT_EXIST, CREATE_MUST_NOT_EXIST, CREATE_REPLACE, gsXFANamespacePrefix
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 and Description |
---|
DataNode(Element parent,
Node prevSibling) |
DataNode(Element parent,
Node prevSibling,
String value)
Constructor for (text-only) DataValues.
|
DataNode(Element parent,
Node prevSibling,
String uri,
String localName,
String qName,
Attributes attributes)
Constructor for DataGroups and DataNodes
|
Modifier and Type | Method and Description |
---|---|
void |
appendChild(Node oChild,
boolean bValidate)
Appends the given child to this element.
|
void |
clearNull() |
Element |
clone(Element parent,
boolean deep) |
void |
connectPeerToDocument()
connectPeerToDocument() is used to rearrange the DOM tree when inserting or appending a node.
|
Node |
createChild(boolean bIsLeaf,
String aName)
create a new child that is appended to this node.
|
String |
getContains()
Determine if a DataValue participates in its parent's value or is an
attribute of the parent.
|
String |
getContentType()
Determine the content type for a DataValue, e.g., text/html.
|
String |
getData()
Gets this node's data.
|
DataNode |
getDataDescription() |
Node |
getFirstXFAChild()
Gets this data element's first XFA child.
|
boolean |
getIsDDPlaceholder() |
boolean |
getIsNull()
Determine if this node contains a null value.
|
String |
getLocalName()
|
String |
getName()
|
Node |
getNextXFASibling()
Gets this data element's next XFA sibling.
|
String |
getNS()
See
Element.getNS() |
ScriptTable |
getScriptTable() |
String |
getValue()
Get the value of the node.
|
String |
getValue(boolean bUseNull)
Get the value of the node.
|
int |
getWeight() |
String |
getXMLName()
|
Node |
getXmlPeer() |
void |
insertChild(Node oChild,
Node refChild,
boolean bValidate)
Inserts a child before a specific child in the child list.
|
boolean |
isAttribute()
Does this data node correspond to an XML Attribute?
|
boolean |
isContainer()
Check to see if this is a container object.
|
boolean |
isTransient()
Determine if this node is transient or not.
|
boolean |
isValidAttr(int eTag,
boolean bReport,
String value)
Determine if a specified attribute tag is valid for this node.
|
boolean |
isValidChild(int eTag,
int nResId,
boolean bBeforeInsert,
boolean bOccurrenceErrorOnly) |
boolean |
isValidElement(int eTag,
boolean bReport) |
void |
makeNonDefault(boolean bRecursive)
Mark this element to indicate it is not a default property
|
void |
preSave(boolean bSaveXMLScript) |
boolean |
processTextChildrenDuringParse()
Text children of data cannot be processed at parse time.
|
void |
remove()
Removes this node fron its parent.
|
void |
resetPostLoadXML() |
void |
saveXML(OutputStream sOutFile,
DOMSaveOptions options)
Serializes this element (and all its children) to an output stream.
|
void |
serialize(OutputStream outStream,
DOMSaveOptions options,
int level,
Node prevSibling)
The helper function used by saveXML()
|
void |
setContentType(String contentType) |
void |
setDataDescription(DataNode dataDescription) |
void |
setIsDDPlaceholder(boolean bIsDDPlaceholder) |
void |
setIsNull(boolean bNull,
boolean bNotify)
Set the null status for this node
|
void |
setLocalName(String name)
|
void |
setName(String sName)
Sets this element's name attribute.
|
void |
setPictureFormat(String sFormat,
String sLocale,
boolean bIsTextNode)
Proprietary: set the data picture format for this data value Applicable
to dataValue nodes
|
void |
setPrivateName(String sName)
used when resolving protos
|
void |
setValue(String sValue,
boolean bNotify)
Set the value of the node.
|
int |
setWeight(int nWeight) |
void |
setXMLName(String name)
|
void |
setXmlPeer(Node peer) |
appendChild, appendPI, appendPI, assignNode, clone, 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, getDeltas, getElement, getElement, getElementClass, getElementLocal, getEnum, getEnum, getEventTable, getFirstXMLChild, getID, getIndex, getInheritedNS, getInstalledLocale, getLastXMLChild, getLineNumber, getModel, getNode, getNodes, getNodeSchema, getNumAttrs, getOneOfChild, getOneOfChild, getPI, getPI, getPrefix, getProperty, getProperty, getSaveXMLSaveTransient, getSchemaType, getScriptMethodInfo, getSibling, getText, getXFAChild, getXMLChild, getXPath, getXsiNilAttribute, inhibitPrettyPrint, inhibitPrettyPrint, isFragment, isHidden, isHidden, isIndexed, isInstalledLocaleAmbient, isLeaf, isNameSpaceAttr, isPropertySpecified, isPropertySpecified, isPropertyValid, isSpecified, isSpecified, isSpecified, isTransient, isTransparent, loadXML, loadXML, makeDefault, newAttribute, optimizeNameSpace, peekAttribute, peekElement, peekOneOfChild, peekProperty, peekProperty, postSave, privateSetName, removeAttr, removeAttr, removeChild, removePI, removePI, removeWhiteSpace, removeXsiNilAttribute, replaceChild, resolveAndEnumerateChildren, resolveNodeCreate, resolvePrefix, saveFilteredXML, saveXML, setAttribute, setAttribute, setAttribute, setAttribute, setAttrProp, setDefaultFlag, setDOMProperties, setElement, setIsDataWindowRoot, setIsIndexed, setLineNumber, setModel, setNS, setOneOfChild, setProperty, setProperty, setQName, setSaveXMLSaveTransient, setTransparent, setXsiNilAttribute, updateFromPeer
checkAncestorPerms, checkDescendentPerms, checkPerms, cleanDirtyFlags, compareVersions, getFirstXMLChildElement, getLocked, getNextXMLSibling, getNextXMLSiblingElement, getNodeAsXML, getOwnerDocument, getPIAsXML, getPIName, getPreviousXMLSibling, getPrivateName, getPropName, getSOMExpression, getSOMExpression, getSomName, getUniqueSOMName, getWillDirty, getXFAChildCount, getXFAParent, getXfaPeer, getXMLChildCount, getXMLParent, hasChanged, isDefault, isDirty, isMapped, isPermsLockSet, locateChildByClass, locateChildByName, logValueChangeHelper, notifyPeers, performSOMAssignment, resolveNode, resolveNode, resolveNode, resolveNodes, resolveNodes, sendMessenge, setDirty, setDocument, setLocked, setMapped, setPermsLock, setWillDirty, setXfaPeer, unLock, validateSchema, validateUsage, validateUsageFailedIsFatal
addPeer, addPeeredNode, clearPeers, deafen, getClassAtom, getClassTag, getPeer, getScriptProperty, getScriptThis, invokeFunction, isDeaf, isMute, isSameClass, isSameClass, isSameClass, mute, peerRemoved, removePeer, removePeeredNode, setClass, setClassTag, setScriptProperty, unDeafen, unMute
public DataNode(Element parent, Node prevSibling, String uri, String localName, String qName, Attributes attributes)
public void appendChild(Node oChild, boolean bValidate)
Element
appendChild
in class Element
oChild
- 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.public void clearNull()
public Node createChild(boolean bIsLeaf, String aName)
bIsLeaf
- true if the child to be created is a leaf child.aName
- an interned string representing the name
of the child to be created.public String getContains()
public String getContentType()
public DataNode getDataDescription()
public boolean getIsDDPlaceholder()
public boolean getIsNull()
Element
getIsNull
in class Element
Element.getIsNull()
public String getName()
public String getLocalName()
getLocalName
in class Element
public void setLocalName(String name)
setLocalName
in class Element
name
- the new local name.public String getXMLName()
getXMLName
in class Element
public void setXMLName(String name)
setXMLName
in class Element
public String getNS()
Element.getNS()
public Node getFirstXFAChild()
getFirstXFAChild
in class Element
public Node getNextXFASibling()
getNextXFASibling
in class Node
public ScriptTable getScriptTable()
getScriptTable
in class Element
public String getValue()
public String getValue(boolean bUseNull)
public boolean isAttribute()
public int getWeight()
public void insertChild(Node oChild, Node refChild, boolean bValidate)
Element
insertChild
in class Element
oChild
- the child to be insertedrefChild
- the child to insert beforebValidate
- if true, validate the insertionpublic boolean isContainer()
Node
isContainer
in class Element
public boolean isValidAttr(int eTag, boolean bReport, String value)
Element
isValidAttr
in class Element
eTag
- the XFA tag to checkElement.isValidAttr(int, boolean, String)
public boolean isValidChild(int eTag, int nResId, boolean bBeforeInsert, boolean bOccurrenceErrorOnly)
isValidChild
in class Element
eTag
- 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 isValidElement(int eTag, boolean bReport)
isValidElement
in class Element
Element.isValidElement(int, boolean)
public void makeNonDefault(boolean bRecursive)
Node
makeNonDefault
in class Element
Node.makeNonDefault(boolean)
public boolean processTextChildrenDuringParse()
processTextChildrenDuringParse
in class Element
true
if child text nodes should be processed at parse time.public void preSave(boolean bSaveXMLScript)
preSave
in class Element
Node.preSave(boolean)
public void resetPostLoadXML()
resetPostLoadXML
in class Element
public void saveXML(OutputStream sOutFile, DOMSaveOptions options)
Element
saveXML
in class Element
sOutFile
- an output stream.options
- the XML save optionsElement.saveXML(OutputStream, DOMSaveOptions)
public void serialize(OutputStream outStream, DOMSaveOptions options, int level, Node prevSibling) throws IOException
Node
serialize
in class Element
outStream
- Streamfile to write tooptions
- save optionslevel
- the indent levelprevSibling
- our previous sibling -- needed for some markup options.IOException
Node.serialize(OutputStream, DOMSaveOptions, int, Node)
public void setContentType(String contentType)
public void setDataDescription(DataNode dataDescription)
public void setIsDDPlaceholder(boolean bIsDDPlaceholder)
public void setIsNull(boolean bNull, boolean bNotify)
bNull
- bNotify
- public void setName(String sName)
Element
public void setPictureFormat(String sFormat, String sLocale, boolean bIsTextNode)
sFormat
- sLocale
- bIsTextNode
- public void setPrivateName(String sName)
Node
setPrivateName
in class Node
public void setValue(String sValue, boolean bNotify)
sValue
- -
the new value for this node.public int setWeight(int nWeight)
public final boolean isTransient()
isTransient
in class Node
public void connectPeerToDocument()
Element
connectPeerToDocument
in class Element
public void setXmlPeer(Node peer)
setXmlPeer
in interface Element.DualDomNode
public Node getXmlPeer()
getXmlPeer
in interface Element.DualDomNode
Copyright © 2010 - 2020 Adobe. All Rights Reserved