|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsst.ccs.bus.BusMessage
org.lsst.ccs.bus.Status
org.lsst.ccs.bus.DataStatus
public class DataStatus
Status with additional information.
This class can used instead of subclassing Status: if the receiver does not have the needed classes in its classPath the code won't crash .
| Field Summary | |
|---|---|
protected Object |
value
|
| Fields inherited from class org.lsst.ccs.bus.Status |
|---|
state |
| Fields inherited from class org.lsst.ccs.bus.BusMessage |
|---|
detailLevel, origin, priorityLevel, summary, timeStamp |
| Constructor Summary | |
|---|---|
protected |
DataStatus()
for use by subclasses only |
|
DataStatus(char charValue)
|
|
DataStatus(Class clazz,
Serializable serializable)
to be mostly used when primitive types are to be used. |
|
DataStatus(double doubleValue)
|
|
DataStatus(float floatValue)
|
|
DataStatus(int intValue)
|
|
DataStatus(Serializable serializable)
any Object including null values. |
| Method Summary | |
|---|---|
protected String |
contentString()
|
Object |
getData()
gets the data content but throws an Excepton if the object cannot be deserialized |
String |
getDataClassName()
what is the class of the contained data? Developers of subclasses should override this method. |
boolean |
isOfPrimitiveType()
is the content to be considered of a primitive type? Developers of subclasses should override this method. |
boolean |
isOfWellKnownType()
is the content of a "Well known type" as defined in ObjectNType. |
String |
toString()
|
| Methods inherited from class org.lsst.ccs.bus.Status |
|---|
getMessageType, getState, setState |
| Methods inherited from class org.lsst.ccs.bus.BusMessage |
|---|
getDetailLevel, getOrigin, getPriorityLevel, getSummary, getTimeStamp, setDetailLevel, setOrigin, setPriorityLevel, setSummary, setTimeStamp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Object value
| Constructor Detail |
|---|
protected DataStatus()
public DataStatus(Serializable serializable)
serializable -
public DataStatus(Class clazz,
Serializable serializable)
clazz - serializable - public DataStatus(int intValue)
public DataStatus(double doubleValue)
public DataStatus(float floatValue)
public DataStatus(char charValue)
| Method Detail |
|---|
public boolean isOfWellKnownType()
public boolean isOfPrimitiveType()
public String getDataClassName()
public Object getData()
throws ClassNotFoundException
ClassNotFoundExceptionprotected String contentString()
public String toString()
toString in class Status
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||