package org.crosswire.xml; /** * Copyright (c) 2001 CrossWire Bible Society. * Distributable under the terms of the GNU GPL V2. */ import org.w3c.dom.Node; /** * Overview:
* This class overrides the XMLTag class. It represents a * XML tag/element which include tag name, attributes, and * the data. * * @author Alan Lo, Troy A. Griffitts * @version 2.0 * **/ public class XMLDataElement extends XMLTag implements java.io.Serializable { public XMLDataElement(Node node, String value) { super(node); setText(value); } public XMLDataElement(Node node) { super(node); } public XMLDataElement(XMLTag other) { super(other); } public XMLDataElement(XMLProvider p, XMLResolver r) { super(p, r); } /** * This method get the text data from the XMLDataElement. * **/ public String getText() { return provider.getText(); } /** * This method set the text data for the XMLDataElement. * **/ public void setText(String text) { resolver.setText(text); } public String toString() { return "\t" + super.toString() + getText() + "\n"; } }