Package ag.smaser.trip.cfw
Enum ConnectorReturnCode
- java.lang.Object
-
- java.lang.Enum<ConnectorReturnCode>
-
- ag.smaser.trip.cfw.ConnectorReturnCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConnectorReturnCode>
public enum ConnectorReturnCode extends java.lang.Enum<ConnectorReturnCode>
Valid connector return codes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description InitializationError
Initialization has not yet taken place, or an error occurred during initialization.InvalidArgument
A method was passed an invalid argument.NotSupported
The requested functionality is not yet supported.Success
Operation succeeded.Unknown
Other error.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
The return code as an integer value.static ConnectorReturnCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConnectorReturnCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Success
public static final ConnectorReturnCode Success
Operation succeeded.
-
InvalidArgument
public static final ConnectorReturnCode InvalidArgument
A method was passed an invalid argument.
-
InitializationError
public static final ConnectorReturnCode InitializationError
Initialization has not yet taken place, or an error occurred during initialization.
-
NotSupported
public static final ConnectorReturnCode NotSupported
The requested functionality is not yet supported.
-
Unknown
public static final ConnectorReturnCode Unknown
Other error.
-
-
Method Detail
-
values
public static ConnectorReturnCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConnectorReturnCode c : ConnectorReturnCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConnectorReturnCode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getCode
public int getCode()
The return code as an integer value.- Returns:
- Numeric error code
-
-