anon.terms
Class TCComponent

java.lang.Object
  extended by anon.terms.TCComponent
Direct Known Subclasses:
Paragraph, TCComposite

public abstract class TCComponent
extends java.lang.Object


Field Summary
protected  java.lang.Object content
          a TCComponent is only supposed to have String content
protected  double id
          the id of a TC component is represented by a String
 
Constructor Summary
TCComponent()
           
TCComponent(double id)
           
TCComponent(double id, java.lang.Object content)
           
 
Method Summary
abstract  java.lang.Object clone()
           
 boolean equals(java.lang.Object anotherObject)
           
 java.lang.Object getContent()
           
 double getId()
           
 boolean hasContent()
           
 void setContent(java.lang.Object content)
           
 void setId(double id)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected double id
the id of a TC component is represented by a String


content

protected java.lang.Object content
a TCComponent is only supposed to have String content

Constructor Detail

TCComponent

public TCComponent()

TCComponent

public TCComponent(double id)

TCComponent

public TCComponent(double id,
                   java.lang.Object content)
Method Detail

getId

public double getId()

setId

public void setId(double id)

getContent

public java.lang.Object getContent()

setContent

public void setContent(java.lang.Object content)

hasContent

public boolean hasContent()

equals

public boolean equals(java.lang.Object anotherObject)
Overrides:
equals in class java.lang.Object

clone

public abstract java.lang.Object clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object