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
-
TXText(String)
- Make new TextElement instance.
-
appned(String)
- Append text.
-
clone()
- Clone this object.
-
getData()
- [DOM] Return data.
-
getIsIgnorableWhitespace()
- [DOM] Get ignoreable flag.
-
getLanguage()
- Return language ID.
-
getNodeType()
- [DOM] Return
Node.NodeType.TEXT
-
getText()
- Return data.
-
makePrintable(String)
-
-
print(PrintWriter, int)
- Print.
-
print(PrintWriter, String, int)
- Print.
-
setData(String)
- [DOM] Set data.
-
setIsIgnorableWhitespace(boolean)
- [DOM] Set ignoreable flag.
-
toString()
- Represents in String.
-
trim(String)
- Trim specified String.
-
trim(String, boolean, boolean)
- Trim specified String.
TXText
public TXText(String data)
- Make new TextElement instance.
getNodeType
public int getNodeType()
- [DOM] Return
Node.NodeType.TEXT
- Overrides:
- getNodeType in class Child
setData
public void setData(String data)
- [DOM] Set data.
getData
public String getData()
- [DOM] Return data.
getText
public String getText()
- Return data.
- Overrides:
- getText in class Child
setIsIgnorableWhitespace
public void setIsIgnorableWhitespace(boolean isIgnorableWhitespace)
- [DOM] Set ignoreable flag.
getIsIgnorableWhitespace
public boolean getIsIgnorableWhitespace()
- [DOM] Get ignoreable flag.
clone
public synchronized Object clone()
- Clone this object.
- Overrides:
- clone in class Child
appned
public void appned(String t)
- Append text.
toString
public String toString()
- Represents in String.
<>&'" are represented as entity reference.
- Overrides:
- toString in class Object
print
public void print(PrintWriter pw,
int indent)
- Print.
- Overrides:
- print in class Child
print
public void print(PrintWriter pw,
String enc,
int indent)
- Print.
- Overrides:
- print in class Child
getLanguage
public String getLanguage()
- Return language ID.
- Returns:
- null when all of parents have no language ID.
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.
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.
makePrintable
public static String makePrintable(String v)
All Packages Class Hierarchy This Package Previous Next Index