| java.lang.Object com.rimfaxe.xml.xmlreader.Node com.rimfaxe.xml.xmlreader.Text
Text | public class Text extends Node (Code) | | A section of text in an element. In XML this can be either CDATA or not:
the DOM model does not distinguish between the two encodings.
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.
See Also: GNU Lesser General Public License version: $Date: 2002/12/13 23:09:24 $ $Revision: 1.3 $ author: Eamonn O'Brien-Strain See Also: org.w3c.dom.Text |
Constructor Summary | |
public | Text(String data) Create with an initial character as its data. | public | Text(char ch) Create with an initial character as its data. |
Text | public Text(String data)(Code) | | Create with an initial character as its data. This can be added to later.
|
Text | public Text(char ch)(Code) | | Create with an initial character as its data. This can be added to later.
|
appendData | public void appendData(char ch)(Code) | | |
appendData | public void appendData(char[] cbuf, int offset, int len)(Code) | | Parameters: cbuf - characters, some of which are to be appended to the text data Parameters: offset - the first index in cbuf to copy Parameters: len - the number of characters to copy |
clone | public Object clone()(Code) | | Deep clone: returns Text node with copy of this ones data.
|
equals | public boolean equals(Object thatO)(Code) | | 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
|
|
|