public abstract class UnmodifiableDataObject extends NamedType implements DataObject, AsciiSerializable
_description, _index, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT| Constructor and Description |
|---|
UnmodifiableDataObject()
Constructor for the UnmodifiableDataObject object
|
UnmodifiableDataObject(java.lang.String name,
long id)
Constructor for the UnmodifiableDataObject object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addObjectReference(DataObjectReference ref)
Adds a feature to the ObjectReference attribute of the
UnmodifiableDataObject object
|
void |
addObserver(hec.event.AbstractDataListener doo)
add an observer to myself
|
void |
copyInto(DataObject dobj)
Description of the Method
|
void |
copyInto(DataStruct dsObj)
Description of the Method
|
void |
DataChanged(hec.event.DataChangeEvent e)
Description of the Method
|
void |
decrementRefCnt()
Description of the Method
|
void |
delete()
Description of the Method
|
DataStruct |
getData()
Gets the data attribute of the UnmodifiableDataObject object
|
CommonDataList |
getDataList()
Gets the dataList attribute of the UnmodifiableDataObject object
|
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
Gets the fieldObject attribute of the UnmodifiableDataObject object
|
int |
getGmtOffset()
Gets the gmtOffset attribute of the UnmodifiableDataObject object
|
long |
getId()
Gets the id attribute of the UnmodifiableDataObject object
|
DataObjectReference[] |
getObjectReferences()
Gets the objectReferences attribute of the UnmodifiableDataObject object
|
DataObject |
getParent()
Gets the parent attribute of the UnmodifiableDataObject object
|
int |
getRefCnt()
Gets the refCnt attribute of the UnmodifiableDataObject object
|
int |
getUnitSystem()
Gets the unitSystem attribute of the UnmodifiableDataObject object
|
void |
incrementRefCnt()
Description of the Method
|
boolean |
isLoaded()
Gets the loaded attribute of the UnmodifiableDataObject object
|
boolean |
loadData()
this method should be called from the concrete class's loadData method
to ensure that the object references get loaded correctly.
|
boolean |
loadId()
Stubbed out loadId method that always returns true.
|
void |
locked(boolean lock,
java.lang.String user)
Description of the Method
|
void |
locked(hec.event.LockEvent le)
Description of the Method
|
void |
reload()
Description of the Method
|
void |
removeObjectReference(DataObjectReference ref)
Description of the Method
|
void |
removeObjectReference(int pos)
Description of the Method
|
void |
removeObserver(hec.event.AbstractDataListener doo)
remove an observer from my list of observers
|
void |
rename(java.lang.String s)
Description of the Method
|
boolean |
save()
tell this object's object references to save themselves s/b called at
the end of the concrete class's save().
|
boolean |
setDataList(CommonDataList datalist)
Sets the dataList attribute of the UnmodifiableDataObject object
|
void |
setDescription(java.lang.String desc)
propagate the description change to all object refs
|
boolean |
setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
Sets the fieldObject attribute of the UnmodifiableDataObject object
|
boolean |
setId(long id)
Sets the id attribute of the UnmodifiableDataObject object
|
void |
setModified(boolean b)
Sets the modified attribute of the UnmodifiableDataObject object
|
void |
setName(java.lang.String name)
propagate the name change to all object refs
|
void |
setParent(DataObject parent)
Sets the parent attribute of the UnmodifiableDataObject object
|
addModifiableListener, clone, compareTo, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, removeModifiableListener, set, setIgnoreModifiedEvents, setIndex, setValid, toString, update, useRecursiveModifiedTestaddObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObserversequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, getName, isModifiedpublic UnmodifiableDataObject()
public UnmodifiableDataObject(java.lang.String name,
long id)
id - Description of the Parameterpublic boolean setDataList(CommonDataList datalist)
setDataList in interface DataObjectdatalist - The new dataList valuepublic final void setDescription(java.lang.String desc)
setDescription in interface DataObjectsetDescription in class NamedTypedesc - The new description valuepublic final boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
setFieldObject in interface FieldAccessorsetFieldObject in class NamedTypefld - The new fieldObject valuefobj - The new fieldObject valuepublic final boolean setId(long id)
setId in interface DataObjectid - The new id valuepublic final void setModified(boolean b)
setModified in interface DataObjectsetModified in interface rma.lang.ModifiablesetModified in class NamedTypeb - The new modified valuepublic final void setName(java.lang.String name)
setName in interface DataObjectsetName in class NamedTypename - The new name valuepublic void setParent(DataObject parent)
setParent in interface DataObjectparent - The new parent valuepublic DataStruct getData()
getData in interface DataObjectpublic CommonDataList getDataList()
getDataList in interface DataObjectpublic java.lang.Object getFieldObject(java.lang.reflect.Field fld)
getFieldObject in interface FieldAccessorgetFieldObject in class NamedTypefld - Description of the Parameterpublic int getGmtOffset()
public final long getId()
getId in interface DataStructpublic final boolean isLoaded()
isLoaded in interface DataObjectpublic final DataObjectReference[] getObjectReferences()
getObjectReferences in interface DataObjectpublic DataObject getParent()
getParent in interface DataObjectpublic final int getRefCnt()
getRefCnt in interface DataObjectpublic int getUnitSystem()
public final void reload()
reload in interface DataObjectpublic final void DataChanged(hec.event.DataChangeEvent e)
DataChanged in interface hec.event.DataChangeListenere - Description of the Parameterpublic final void locked(hec.event.LockEvent le)
locked in interface hec.event.LockListenerle - Description of the Parameterpublic final void locked(boolean lock,
java.lang.String user)
locked in interface DataObjectlock - Description of the Parameteruser - Description of the Parameterpublic final void rename(java.lang.String s)
public final boolean loadId()
loadId in interface DataObjectDataObjectpublic boolean loadData()
loadData in interface DataObjectpublic final boolean addObjectReference(DataObjectReference ref)
addObjectReference in interface DataObjectref - The feature to be added to the ObjectReference attributepublic final void removeObjectReference(int pos)
removeObjectReference in interface DataObjectpos - Description of the Parameterpublic final void removeObjectReference(DataObjectReference ref)
ref - Description of the Parameterpublic final boolean save()
save in interface DataObjectpublic final void addObserver(hec.event.AbstractDataListener doo)
addObserver in interface DataObjectdoo - The feature to be added to the Observer attributepublic final void removeObserver(hec.event.AbstractDataListener doo)
removeObserver in interface DataObjectdoo - Description of the Parameterpublic final void incrementRefCnt()
incrementRefCnt in interface DataObjectpublic final void decrementRefCnt()
decrementRefCnt in interface DataObjectpublic final void copyInto(DataObject dobj)
copyInto in interface DataObjectdobj - Description of the Parameterpublic final void copyInto(DataStruct dsObj)
copyInto in interface DataObjectdsObj - Description of the Parameterpublic final void delete()
delete in interface DataObject