All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.xml.parser.TXText

java.lang.Object
   |
   +----com.ibm.xml.parser.Child
           |
           +----com.ibm.xml.parser.TXText

public class TXText
extends Child
implements Text
Represents texts in Element.

Version:
19980203

Constructor Index

 o TXText(String)
Make new TextElement instance.

Method Index

 o appned(String)
Append text.
 o clone()
Clone this object.
 o getData()
[DOM] Return data.
 o getIsIgnorableWhitespace()
[DOM] Get ignoreable flag.
 o getLanguage()
Return language ID.
 o getNodeType()
[DOM] Return Node.NodeType.TEXT
 o getText()
Return data.
 o makePrintable(String)
 o print(PrintWriter, int)
Print.
 o print(PrintWriter, String, int)
Print.
 o setData(String)
[DOM] Set data.
 o setIsIgnorableWhitespace(boolean)
[DOM] Set ignoreable flag.
 o toString()
Represents in String.
 o trim(String)
Trim specified String.
 o trim(String, boolean, boolean)
Trim specified String.

Constructors

 o TXText
 public TXText(String data)
Make new TextElement instance.

Methods

 o getNodeType
 public int getNodeType()
[DOM] Return Node.NodeType.TEXT

Overrides:
getNodeType in class Child
 o setData
 public void setData(String data)
[DOM] Set data.

 o getData
 public String getData()
[DOM] Return data.

 o getText
 public String getText()
Return data.

Overrides:
getText in class Child
 o setIsIgnorableWhitespace
 public void setIsIgnorableWhitespace(boolean isIgnorableWhitespace)
[DOM] Set ignoreable flag.

 o getIsIgnorableWhitespace
 public boolean getIsIgnorableWhitespace()
[DOM] Get ignoreable flag.

 o clone
 public synchronized Object clone()
Clone this object.

Overrides:
clone in class Child
 o appned
 public void appned(String t)
Append text.

 o toString
 public String toString()
Represents in String. <>&'" are represented as entity reference.

Overrides:
toString in class Object
 o print
 public void print(PrintWriter pw,
                   int indent)
Print.

Overrides:
print in class Child
 o print
 public void print(PrintWriter pw,
                   String enc,
                   int indent)
Print.

Overrides:
print in class Child
 o getLanguage
 public String getLanguage()
Return language ID.

Returns:
null when all of parents have no language ID.
 o trim
 public static String trim(String v)
Trim specified String. All strings of white space are replaced by single space (#x20), leading white space and trailing white space are removed.

 o trim
 public static String trim(String v,
                           boolean cuthead,
                           boolean cuttail)
Trim specified String. All strings of white space are replaced by single space (#x20). leading white space and trailing white space are removed if flags are true.

 o makePrintable
 public static String makePrintable(String v)

All Packages  Class Hierarchy  This Package  Previous  Next  Index