JADE v6.1

com.dautelle.xml
Class CharData

java.lang.Object
  extended bycom.dautelle.xml.CharData
All Implemented Interfaces:
Representable

public class CharData
extends java.lang.Object
implements Representable

This class represents the text that is not markup and constitutes the character data of a XML document.

During parsing, instances of this class are generated for character data containing at least one non-whitespace character.

Version:
5.3, October 13, 2003
Author:
Jean-Marie Dautelle

Constructor Summary
CharData(java.lang.String text)
          Creates a CharData instance with the specified text.
 
Method Summary
 java.lang.String toString()
          Returns the text of this CharData.
 void toXml(XmlElement xml)
          Sets the attributes and content of the XML element corresponding to this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CharData

public CharData(java.lang.String text)
Creates a CharData instance with the specified text.

Parameters:
text - the text of this CharData.
Method Detail

toString

public java.lang.String toString()
Returns the text of this CharData.

Returns:
the text of this CharData.

toXml

public void toXml(XmlElement xml)
Description copied from interface: Representable
Sets the attributes and content of the XML element corresponding to this object.

Specified by:
toXml in interface Representable
Parameters:
xml - the XML element to set according to this object's desired XML representation.

JADE v6.1

Copyright © 2004 Jean-Marie Dautelle.