All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class hplb.xml.TextImpl

java.lang.Object
   |
   +----hplb.xml.NodeImpl
           |
           +----hplb.xml.TextImpl

public class TextImpl
extends NodeImpl
implements Text, Comment, PI
Class whose instances represent PCDATA, comments, and PIs (processing instructions.

Author:
Anders Kristensen

Variable Index

 o data
 o name

Constructor Index

 o TextImpl(int, String)
Construct new leaf node whose value is textual.

Method Index

 o append(String)
 o delete(int, int)
 o getData()
 o getName()
 o insert(int, String)
 o replace(int, int, String)
 o setData(String)
 o setName(String)
 o splice(Element, int, int)
 o toDebugString()
 o toString()
 o typeAsString()

Variables

 o data
 protected String data
 o name
 protected String name

Constructors

 o TextImpl
 public TextImpl(int type,
                 String data)
Construct new leaf node whose value is textual.

Parameters:
type - one of Node.PI, Node.COMMENT, and Node.TEXT.
data - the PCDATA, CDATA, comment, whatever

Methods

 o getData
 public String getData()
 o setData
 public void setData(String arg)
 o append
 public void append(String data)
 o insert
 public void insert(int offset,
                    String data)
 o delete
 public void delete(int offset,
                    int count)
 o replace
 public void replace(int offset,
                     int count,
                     String data)
 o splice
 public void splice(Element element,
                    int offset,
                    int count)
 o getName
 public String getName()
 o setName
 public void setName(String arg)
 o typeAsString
 protected String typeAsString()
 o toDebugString
 public String toDebugString()
 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index