Package adams.data.text
Class TextContainer
- java.lang.Object
-
- adams.data.container.AbstractSimpleContainer<String>
-
- adams.data.text.TextContainer
-
- All Implemented Interfaces:
CloneHandler<AbstractSimpleContainer<String>>,UniqueIDHandler,IDHandler,MutableIDHandler,MutableNotesHandler,NotesHandler,MutableReportHandler<Report>,ReportHandler<Report>,Serializable
public class TextContainer extends AbstractSimpleContainer<String> implements MutableIDHandler
Simple container for text objects that also offers notes and a report for storing meta-data.- Version:
- $Revision: 6656 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringm_IDthe ID.-
Fields inherited from class adams.data.container.AbstractSimpleContainer
FIELD_FILENAME, m_Content, m_Notes, m_Report, m_UUID
-
-
Constructor Summary
Constructors Constructor Description TextContainer()Initializes the container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcloneContent()Returns a clone of the content.StringgetID()Returns the ID.protected voidinitialize()Initializes the members.voidsetID(String value)Sets the ID.StringtoString()Returns a string representation of the container.-
Methods inherited from class adams.data.container.AbstractSimpleContainer
getClone, getContent, getHeader, getNotes, getReport, getUniqueID, hasReport, setContent, setNotes, setReport
-
-
-
-
Field Detail
-
m_ID
protected String m_ID
the ID.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initializein classAbstractSimpleContainer<String>
-
cloneContent
protected String cloneContent()
Returns a clone of the content.- Specified by:
cloneContentin classAbstractSimpleContainer<String>- Returns:
- the clone
-
getID
public String getID()
Returns the ID.
-
setID
public void setID(String value)
Sets the ID.- Specified by:
setIDin interfaceMutableIDHandler- Parameters:
value- the ID
-
toString
public String toString()
Returns a string representation of the container.- Overrides:
toStringin classAbstractSimpleContainer<String>- Returns:
- the string representation
-
-