gov.aps.jca
Class CASeverity

java.lang.Object
  |
  +--gov.aps.jca.Enum
        |
        +--gov.aps.jca.ValuedEnum
              |
              +--gov.aps.jca.CASeverity

public class CASeverity
extends ValuedEnum

Enumeration class representing Channel Access severity codes.

Author:
Eric Boucher

Field Summary
static CASeverity ERROR
          Failed-continue.
static CASeverity FATAL
          fatal.
static CASeverity INFO
          Successful.
static CASeverity SEVERE
          failed-quit.
static CASeverity SUCCESS
          Successful.
static CASeverity WARNING
          Unsuccessful.
 
Method Summary
static CASeverity forName(java.lang.String name)
          Return the CASeverity corresponding to specific name.
static CASeverity forValue(int value)
          Return the CASeverity corresponding to specific numerical value.
 boolean isError()
          Tests whether this CASeverity represent an error code.
 boolean isFatal()
          Tests whether this CASeverity represents a fatal code.
 boolean isSuccessful()
          tests whether this CASeverity represent a successful code.
 
Methods inherited from class gov.aps.jca.ValuedEnum
getValue, isEqualTo, isGreaterThan, isGreaterThanOrEqual, isLessThan, isLessThanOrEqual, toString
 
Methods inherited from class gov.aps.jca.Enum
equals, getName, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

WARNING

public static final CASeverity WARNING
Unsuccessful.


SUCCESS

public static final CASeverity SUCCESS
Successful.


ERROR

public static final CASeverity ERROR
Failed-continue.


INFO

public static final CASeverity INFO
Successful.


SEVERE

public static final CASeverity SEVERE
failed-quit.


FATAL

public static final CASeverity FATAL
fatal.

Method Detail

isSuccessful

public boolean isSuccessful()
tests whether this CASeverity represent a successful code.

Returns:
true if this severity value represent a successful operation.

isError

public boolean isError()
Tests whether this CASeverity represent an error code.

Returns:
true if this severity value represent an error.

isFatal

public boolean isFatal()
Tests whether this CASeverity represents a fatal code.

Returns:
true if this severity value represent an fatal error.

forName

public static CASeverity forName(java.lang.String name)
Return the CASeverity corresponding to specific name.

Parameters:
name - the name of the CASeverity to look for.
Returns:
the corresponding CASeverity if it exists, null otherwise.

forValue

public static CASeverity forValue(int value)
Return the CASeverity corresponding to specific numerical value.

Parameters:
value - the value of the CASeverity to look for.
Returns:
the corresponding CASeverity if it exists, null otherwise.