XFA4J

com.adobe.xfa
Class Chars

java.lang.Object
  extended by com.adobe.xfa.Obj
      extended by com.adobe.xfa.Node
          extended by com.adobe.xfa.Chars
Direct Known Subclasses:
TextNode

public class Chars
extends Node

A class to represent the XML character data nodes in the DOM.


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
Chars(Element parent, Node prevSibling, java.lang.String text)
          Instantiates a character data node with the given text.
 
Method Summary
 java.lang.String getData()
          Gets this node's data.
 java.lang.String getName()
          Gets this node's name.
 java.lang.String getText()
          Gets this node's text.
 boolean isXMLSpace()
          Determines if this character data node consists entirely of XML white spaces.
 void setText(java.lang.String text)
          Sets this node's text.
 
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

Chars

public Chars(Element parent,
             Node prevSibling,
             java.lang.String text)
Instantiates a character data node with the given text.

Parameters:
parent - the node's parent, if any.
prevSibling - the node's previous sibling, if any.
text - the node's text.
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 character data name, which is the constant value "".

getText

public java.lang.String getText()
Gets this node's text.

Returns:
the character data text.

isXMLSpace

public boolean isXMLSpace()
Determines if this character data node consists entirely of XML white spaces. In XML, a white space is defined as a space, carriage return, linefeed or tab (i.e. U+0020, U+000A, U+000D, U+0009).

Returns:
true if this node's text consists entirely of XML whitespace characters, and false otherwise.

setText

public void setText(java.lang.String text)
Sets this node's text.

Parameters:
text - the text.

XFA4J

© 2005 Adobe Systems Incorporated. All Rights Reserved.