Package adams.data.container
Class ObjectContainer
- java.lang.Object
-
- adams.data.container.AbstractSimpleContainer<Object>
-
- adams.data.container.ObjectContainer
-
- All Implemented Interfaces:
CloneHandler<AbstractSimpleContainer<Object>>
,UniqueIDHandler
,IDHandler
,MutableIDHandler
,MutableNotesHandler
,NotesHandler
,MutableReportHandler<Report>
,ReportHandler<Report>
,Serializable
public class ObjectContainer extends AbstractSimpleContainer<Object> implements MutableIDHandler
Simple container for (serializable) objects that also offers notes and a report for storing meta-data.- 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 ObjectContainer()
Initializes the container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
cloneContent()
Returns a clone of the object.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<Object>
-
cloneContent
protected Object cloneContent()
Returns a clone of the object.- Specified by:
cloneContent
in classAbstractSimpleContainer<Object>
- 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<Object>
- Returns:
- the string representation
-
-