|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface DeviceMessage for messages involving a device.
A DeviceMessage object is created by DirectoryService#getDeviceMessage(messageLevel, messageNumber) in the DirectoryService class.
A DeviceMessage can hold information about the state of a device, for display by the program or for sending to related programs or alarm collectors. A message can contain all or part of the following information:
General documentation in DirectoryService .
Method Summary | |
java.lang.String |
getCategory()
Gets the message category. |
java.lang.String |
getLabel()
Gets the one-word message label. |
int |
getLevel()
Gets the message level, indicating nature and priority of the message. |
java.lang.String |
getLongMessage()
Gets the full text of the message, if any, from the database. |
int |
getNumber()
Gets the number that identifies the message for the level. |
java.lang.String |
getShortMessage()
Gets the one-line message string. |
boolean |
isLongMessage()
True when message text is available in the database. |
Methods inherited from interface cdev.dir.DirectoryItem |
getDescription,
getInfo,
getInfoLines,
getInfoWidth,
getName,
getServiceName,
toString |
Method Detail |
public java.lang.String getLabel()
public java.lang.String getCategory()
public int getLevel()
public int getNumber()
public java.lang.String getShortMessage()
public java.lang.String getLongMessage() throws NoSuchDataException
public boolean isLongMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |