com.monad.homerun.base
Class DataObject

java.lang.Object
  extended by com.monad.homerun.base.DataObject
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Album, Circuit, DateModel, Filter, Instance, Month, NumericModel, Panel, Plan, Recording, ReflexSet, Rule, ScalarModel, Scene, Schedule, SetModel, StateModel, TimeModel

public abstract class DataObject
extends java.lang.Object
implements java.io.Serializable

DataObject is the base class for most of the classes used for user-defined data objects residing in the object-store. Just centralizes some common fields and methods.

See Also:
Serialized Form

Constructor Summary
DataObject()
           
DataObject(java.lang.String name)
           
DataObject(java.lang.String name, java.lang.String category)
           
 
Method Summary
 java.lang.String getCategory()
          Returns the object's category - domain, type, etc
 long getModificationTime()
          Returns the millisecond timestamp of the last object modification
 java.lang.String getName()
          Returns the object's name
 java.lang.String getNote()
          Returns an optional note
 void setCategory(java.lang.String category)
          Sets the object's category
 void setModificationTime(long time)
           
 void setName(java.lang.String name)
          Sets the object name
 void setNote(java.lang.String note)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataObject

public DataObject()

DataObject

public DataObject(java.lang.String name)

DataObject

public DataObject(java.lang.String name,
                  java.lang.String category)
Method Detail

getName

public java.lang.String getName()
Returns the object's name

Returns:
the object name

setName

public void setName(java.lang.String name)
Sets the object name

Parameters:
name - - the object name

getCategory

public java.lang.String getCategory()
Returns the object's category - domain, type, etc

Returns:
the object category

setCategory

public void setCategory(java.lang.String category)
Sets the object's category

Parameters:
category - - the object category

getModificationTime

public long getModificationTime()
Returns the millisecond timestamp of the last object modification

Returns:
the modification time

setModificationTime

public void setModificationTime(long time)

getNote

public java.lang.String getNote()
Returns an optional note

Returns:
the object note

setNote

public void setNote(java.lang.String note)


Copyright © 2006-2009 Richard Rodgers. All Rights Reserved.