org.activemath.omdocjdom
Class OJText

java.lang.Object
  extended by org.jdom.Content
      extended by org.jdom.Text
          extended by org.activemath.omdocjdom.OJText
All Implemented Interfaces:
Serializable, Cloneable, Infoable, OJNode

public class OJText
extends org.jdom.Text
implements OJNode

This subclass of Text is an almost trivial extension. It adds support for the Infoable slot.

TODO: setType with type constants, Possibly provide an enumeration type ?

Version:
See Also:
Serialized Form

Field Summary
static String CVS_ID
           
 
Fields inherited from class org.jdom.Text
value
 
Fields inherited from class org.jdom.Content
parent
 
Constructor Summary
protected OJText()
          Default constructor for subclassing... incomplete.
  OJText(String text)
          Standard constructor.
 
Method Summary
 Object getInfo()
           
 void setInfo(Object info)
           
 String toString()
          Returns a representation of of the text between "<" and ">".
 
Methods inherited from class org.jdom.Text
append, append, clone, getText, getTextNormalize, getTextTrim, getValue, normalizeString, setText
 
Methods inherited from class org.jdom.Content
detach, equals, getDocument, getParent, getParentElement, hashCode, setParent
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.activemath.omdocjdom.OJNode
getDocument, getParent
 

Field Detail

CVS_ID

public static final String CVS_ID
See Also:
Constant Field Values
Constructor Detail

OJText

protected OJText()
Default constructor for subclassing... incomplete.


OJText

public OJText(String text)
Standard constructor.

Method Detail

toString

public String toString()
Returns a representation of of the text between "<" and ">". Is expensive and should only be used for debugging.

Overrides:
toString in class org.jdom.Text

setInfo

public void setInfo(Object info)
Specified by:
setInfo in interface Infoable

getInfo

public Object getInfo()
Specified by:
getInfo in interface Infoable