XFA4J

com.adobe.xfa
Class Comment

java.lang.Object
  extended by com.adobe.xfa.Obj
      extended by com.adobe.xfa.Node
          extended by com.adobe.xfa.Comment

public final class Comment
extends Node

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
 
Constructor Summary
Comment(Element parent, Node prevSibling, java.lang.String comment)
          Instantiates a node with the given comment.
 
Method Summary
 java.lang.String getData()
          Gets this node's data.
 java.lang.String getName()
          Gets this node's name.
 
Methods inherited from class com.adobe.xfa.Node
assignNode, checkAncestorPerms, checkDescendentPerms, checkPerms, cleanDirtyFlags, compareVersions, getDynamicScriptProp, getFirstXFAChild, getFirstXMLChild, getLastXMLChild, getModel, getNextXFASibling, getNextXMLSibling, getOwnerDocument, getPreviousXMLSibling, getSOMExpression, getXFAChildCount, getXFAParent, getXMLChildCount, getXMLParent, hasChanged, remove, resolveNode, resolveNode, resolveNodes, setNextXMLSibling, setPermsLock, setXMLParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Comment

public Comment(Element parent,
               Node prevSibling,
               java.lang.String 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 Detail

getData

public java.lang.String getData()
Description copied from class: Node
Gets this node's data.

Overrides:
getData in class Node
Returns:
the data appropriate for the various node types.
See Also:
Node.getData()

getName

public java.lang.String getName()
Gets this node's name.

Specified by:
getName in class Node
Returns:
the comment name which is the constant value "#comment".

XFA4J

© 2005 Adobe Systems Incorporated. All Rights Reserved.