anon.terms
Class TCComponent
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
TCComponent
public TCComponent()
TCComponent
public TCComponent(double id)
TCComponent
public TCComponent(double id,
java.lang.Object content)
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