com.hp.hpl.sparta
Class Text
java.lang.Object
|
+--com.hp.hpl.sparta.Node
|
+--com.hp.hpl.sparta.Text
- All Implemented Interfaces:
- java.lang.Cloneable
- public class Text
- extends Node
A section of text in an element.
Copyright (C) 2002 Hewlett-Packard Company.
This file is part of Sparta, an XML Parser, DOM, and XPath library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License
as published by the Free Software Foundation; either version 2.1 of
the License, or (at your option) any later version. This library
is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.
- Version:
- $Date: 2002/08/19 05:03:53 $ $Revision: 1.1.1.1 $
- Author:
- Eamonn O'Brien-Strain
- See Also:
- GNU Lesser General Public License,
Text
Constructor Summary |
Text(char ch)
|
Text(java.lang.String data)
|
Method Summary |
void |
appendData(char ch)
|
void |
appendData(char[] cbuf,
int offset,
int len)
|
void |
appendData(java.lang.String s)
|
java.lang.Object |
clone()
Deep clone: returns Text node with copy of this ones data. |
boolean |
equals(java.lang.Object thatO)
Text nodes can be equal even if they are in different documents,
different parents, different siblings, or different annotations. |
java.lang.String |
getData()
|
void |
setData(java.lang.String data)
|
Element |
xpathSelectElement(java.lang.String xpath)
Not implemented. |
java.util.Enumeration |
xpathSelectElements(java.lang.String xpath)
Not implemented. |
java.lang.String |
xpathSelectString(java.lang.String xpath)
Not implemented. |
java.util.Enumeration |
xpathSelectStrings(java.lang.String xpath)
Not implemented |
Methods inherited from class com.hp.hpl.sparta.Node |
getAnnotation, getNextSibling, getOwnerDocument, getParentNode, getPreviousSibling, htmlEncode, setAnnotation, toString, toXml, xpathEnsure, xpathSetStrings |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Text
public Text(java.lang.String data)
Text
public Text(char ch)
clone
public java.lang.Object clone()
- Deep clone: returns Text node with copy of this ones data.
- Overrides:
clone
in class Node
appendData
public void appendData(java.lang.String s)
appendData
public void appendData(char ch)
appendData
public void appendData(char[] cbuf,
int offset,
int len)
getData
public java.lang.String getData()
setData
public void setData(java.lang.String data)
xpathSelectElements
public java.util.Enumeration xpathSelectElements(java.lang.String xpath)
- Not implemented.
- Overrides:
xpathSelectElements
in class Node
xpathSelectStrings
public java.util.Enumeration xpathSelectStrings(java.lang.String xpath)
- Not implemented
- Overrides:
xpathSelectStrings
in class Node
xpathSelectElement
public Element xpathSelectElement(java.lang.String xpath)
- Not implemented.
- Overrides:
xpathSelectElement
in class Node
xpathSelectString
public java.lang.String xpathSelectString(java.lang.String xpath)
- Not implemented.
- Overrides:
xpathSelectString
in class Node
equals
public boolean equals(java.lang.Object thatO)
- Text nodes can be equal even if they are in different documents,
different parents, different siblings, or different annotations.
They are equal IFF their string data is equal
- Overrides:
equals
in class java.lang.Object