Package com.adobe.xfa
Class Comment
java.lang.Object
com.adobe.xfa.Obj
com.adobe.xfa.Node
com.adobe.xfa.Comment
- All Implemented Interfaces:
Peer
A class to represent the XML comment nodes in the DOM.
A comment's data is all of the characters between
the starting <!--
and ending -->
.
-
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, 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 -
Method Summary
Modifier and TypeMethodDescriptionGets this node's atomic class name.Gets the name of this object's class.getData()
Gets this node's data.getName()
Gets this node's name.boolean
isLeaf()
Is this node is a leaf.void
postSave()
void
preSave
(boolean bSaveXMLScript) void
serialize
(OutputStream outStream, DOMSaveOptions options, int level, Node prevSibling) The helper function used by saveXML()void
setScriptProperty
(String sPropertyName, Arg propertyValue) Methods inherited from class com.adobe.xfa.Node
assignNode, checkAncestorPerms, checkDescendentPerms, checkPerms, cleanDirtyFlags, compareVersions, getAll, getFirstXFAChild, getFirstXMLChild, getFirstXMLChildElement, getIndex, getLastXMLChild, getLocked, getModel, getNextXFASibling, getNextXMLSibling, getNextXMLSiblingElement, getNodeAsXML, getNodes, getOwnerDocument, getPIAsXML, getPIName, getPreviousXMLSibling, getPrivateName, getProperty, getProperty, getPropName, getScriptTable, getSibling, getSOMExpression, getSOMExpression, getSomName, getUniqueSOMName, getWillDirty, getXFAChildCount, getXFAParent, getXfaPeer, getXMLChildCount, getXMLParent, hasChanged, isContainer, isDefault, isDirty, isMapped, isPermsLockSet, isPropertySpecified, isSpecified, isTransient, isTransient, isTransparent, locateChildByClass, locateChildByName, logValueChangeHelper, makeDefault, makeNonDefault, notifyPeers, peekOneOfChild, performSOMAssignment, remove, resolveNode, resolveNode, resolveNode, resolveNodes, resolveNodes, sendMessenge, setDirty, setDocument, setLocked, setMapped, setName, setPermsLock, setPrivateName, setWillDirty, setXfaPeer, unLock, validateSchema, validateUsage, validateUsageFailedIsFatal
Methods inherited from class com.adobe.xfa.Obj
addPeer, addPeeredNode, clearPeers, deafen, getClassTag, getPeer, getScriptMethodInfo, getScriptProperty, getScriptThis, invokeFunction, isDeaf, isMute, isSameClass, isSameClass, isSameClass, mute, peerRemoved, removePeer, removePeeredNode, setClass, setClassTag, setScriptProperty, unDeafen, unMute, updateFromPeer
-
Constructor Details
-
Comment
Instantiates a node with the given comment.- Parameters:
parent
- the node's parent, if any.prevSibling
- the node's previous sibling, if any.comment
- the node's comment.
-
-
Method Details
-
clone
-
getClassAtom
Gets this node's atomic class name.- Overrides:
getClassAtom
in classObj
- Returns:
- the atomic class name.
-
getClassName
Description copied from class:Obj
Gets the name of this object's class. Overriden by derived classes such as Element that have a local name that may be returned instead.- Overrides:
getClassName
in classObj
- Returns:
- the class name.
-
getData
Description copied from class:Node
Gets this node's data. -
getName
Gets this node's name. -
isLeaf
public boolean isLeaf()Description copied from class:Node
Is this node is a leaf. -
postSave
public void postSave() -
preSave
public void preSave(boolean bSaveXMLScript) -
serialize
public void serialize(OutputStream outStream, DOMSaveOptions options, int level, Node prevSibling) throws IOException Description copied from class:Node
The helper function used by saveXML()- Specified by:
serialize
in classNode
- Parameters:
outStream
- Streamfile to write tooptions
- save optionslevel
- the indent levelprevSibling
- our previous sibling -- needed for some markup options.- Throws:
IOException
-
setScriptProperty
-