Package com.adobe.xfa

Class Chars

  • All Implemented Interfaces:
    Direct Known Subclasses:

    public class Chars
    extends Node
    A class to represent the XML character data nodes in the DOM.
    • Constructor Detail

      • Chars

        public Chars​(Element parent,
                     Node prevSibling,
                     char[] text,
                     int start,
                     int length)
      • Chars

        public Chars​(Element parent,
                     Node prevSibling,
                     String text)
        Instantiates a character data node with the given text.
        parent - the node's parent, if any.
        prevSibling - the node's previous sibling, if any.
        text - the node's text.
    • Method Detail

      • getData

        public String getData()
        Description copied from class: Node
        Gets this node's data.
        getData in class Node
        the data appropriate for the various node types.
        See Also:
      • getName

        public String getName()
        Gets this node's name.
        Specified by:
        getName in class Node
        the character data name, which is the constant value "".
      • getText

        public String getText()
        Gets this node's text.
        the character data text.
      • isLeaf

        public boolean isLeaf()
        Description copied from class: Node
        Is this node is a leaf.
        Specified by:
        isLeaf in class Node
        true if this node is a leaf and false otherwise.
      • 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).
        true if this node's text consists entirely of XML whitespace characters, and false otherwise.
      • isXMLSpace

        public static boolean isXMLSpace​(int offset,
                                         int length,
                                         char[] chars)
      • postSave

        public void postSave()
        Specified by:
        postSave in class Node
      • preSave

        public void preSave​(boolean bSaveXMLScript)
        Specified by:
        preSave in class Node
      • setScriptProperty

        public void setScriptProperty​(String sPropertyName,
                                      Arg propertyValue)
      • setText

        public void setText​(String text)
        Sets this node's text.
        text - the text.