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 String
m_ID
the 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 String
cloneContent()
Returns a clone of the content.String
getID()
Returns the ID.protected void
initialize()
Initializes the members.void
setID(String value)
Sets the ID.String
toString()
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:
initialize
in classAbstractSimpleContainer<String>
-
cloneContent
protected String cloneContent()
Returns a clone of the content.- Specified by:
cloneContent
in classAbstractSimpleContainer<String>
- Returns:
- the clone
-
getID
public String getID()
Returns the ID.
-
setID
public void setID(String value)
Sets the ID.- Specified by:
setID
in interfaceMutableIDHandler
- Parameters:
value
- the ID
-
toString
public String toString()
Returns a string representation of the container.- Overrides:
toString
in classAbstractSimpleContainer<String>
- Returns:
- the string representation
-
-