|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bmc.arsys.api.StatusInfo
public class StatusInfo
The StatusInfo
class represents a message generated by a
function call. Nearly every API function has a status parameter as its last
return value. This parameter contains status information about the success or
failure of the call.
StatusInfo consists of zero or more ARStatusStructitems. Each ARStatusStruct
item represents a message that the function call generates, and consists of
the following elements:
0 | AR_RETURN_OK | Operation successful—status might contain one or more informational messages. |
1 | AR_RETURN_WARNING | Operation successful, but some problems encountered-status contains one or more warning messages and might also contain informational messages. |
2 | AR_RETURN_ERROR | Operation failed—status contains one or more error messages and might also contain warning or informational messages. |
3 | AR_RETURN_FATAL | Operation failed—status might contain one or more messages. |
4 | AR_RETURN_BAD_STATUS | Invalid status parameter—operation canceled. |
5 | AR_RETURN_PROMPT | Status for the active link action. |
6 | AR_RETURN_ACCESSIBLE | Status message for client accessibility |
Constructor Summary | |
---|---|
StatusInfo()
constructor |
|
StatusInfo(int messageType,
long messageNum,
String appendedText)
|
|
StatusInfo(int messageType,
long messageNum,
String messageText,
String appendedText)
|
|
StatusInfo(long messageNum,
Locale locale)
|
Method Summary | |
---|---|
Object |
clone()
Clone implementation that returns an Object with data cloned from self. |
boolean |
equals(Object obj)
Use this method for checking equality between the current object and the provided one. |
String |
getAppendedText()
Returns the text that augments the message text. |
long |
getMessageNum()
Returns error number associated with the message. |
String |
getMessageText()
Returns message text corresponding to message number in the language specified in ARServerUser . |
int |
getMessageType()
Returns integer value indicating the type of message. |
int |
hashCode()
Returns the hash code value for this instance of the current class. |
void |
setAppendedText(String appendedText)
Sets the text that augments the message text. |
void |
setMessageNum(long messageNum)
Sets error number associated with the message. |
void |
setMessageText(String messageText)
Sets message text corresponding to message number in the language specified in ARServerUser . |
void |
setMessageType(int messageType)
Sets integer value indicating the type of message. |
String |
toString()
Returns in a String object that containing all of the status messages. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StatusInfo()
public StatusInfo(int messageType, long messageNum, String messageText, String appendedText)
public StatusInfo(int messageType, long messageNum, String appendedText)
public StatusInfo(long messageNum, Locale locale)
Method Detail |
---|
public int getMessageType()
Constants.AR_RETURN_OK
--
Operation successful - status may contain one or more informational messages.
Constants.AR_RETURN_WARNING
--
Operation successful, but some problem encountered -
status contains one or more warning messages and may also
contain informational messages.
Constants.AR_RETURN_ERROR
--
Operation failed - status contains one or more error messages and may also
contain warning or informational messages.
Constants.AR_RETURN_FATAL
--
Operation failed - status may contain one or more messages.
Constants.AR_RETURN_BAD_STATUS
--
Invalid status parameter - operation cancelled.
Constants.AR_RETURN_PROMPT
--
Active link message action type, prompt message.
Constants.AR_RETURN_ACCESSIBLE
--
Active link message action type, status message for client accessibility.
public void setMessageType(int messageType)
getMessageType()
for possible values.
public long getMessageNum()
public void setMessageNum(long messageNum)
public String getMessageText()
ARServerUser
.
public void setMessageText(String messageText)
ARServerUser
.
public String getAppendedText()
Constants.AR_MAX_MESSAGE_SIZE
(255 bytes).
public void setAppendedText(String appendedText)
Constants.AR_MAX_MESSAGE_SIZE
(255 bytes).
public String toString()
toString
in class Object
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- the object that we are comparing to
|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |