Package org.yamcs.cfdp.pdu
Enum StatusCode
- java.lang.Object
-
- java.lang.Enum<StatusCode>
-
- org.yamcs.cfdp.pdu.StatusCode
-
- All Implemented Interfaces:
Serializable
,Comparable<StatusCode>
public enum StatusCode extends Enum<StatusCode>
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static Map<Byte,StatusCode>
Lookup
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getCode()
static StatusCode
readStatusCode(byte b)
static StatusCode
readStatusCode(ByteBuffer buffer)
static StatusCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static StatusCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESSFUL
public static final StatusCode SUCCESSFUL
-
CREATE_NOT_ALLOWED
public static final StatusCode CREATE_NOT_ALLOWED
-
NOT_PERFORMED
public static final StatusCode NOT_PERFORMED
-
FILE_DOES_NOT_EXIST
public static final StatusCode FILE_DOES_NOT_EXIST
-
DELETE_NOT_ALLOWED
public static final StatusCode DELETE_NOT_ALLOWED
-
OLD_FILE_NAME_DOES_NOT_EXIST
public static final StatusCode OLD_FILE_NAME_DOES_NOT_EXIST
-
NEW_FILE_NAME_ALREADY_EXISTS
public static final StatusCode NEW_FILE_NAME_ALREADY_EXISTS
-
RENAME_NOT_ALLOWED
public static final StatusCode RENAME_NOT_ALLOWED
-
FILE_NAME_DOES_NOT_EXIST
public static final StatusCode FILE_NAME_DOES_NOT_EXIST
-
FILE_NAME_2_DOES_NOT_EXIST
public static final StatusCode FILE_NAME_2_DOES_NOT_EXIST
-
APPEND_NOT_ALLOWED
public static final StatusCode APPEND_NOT_ALLOWED
-
REPLACE_NOT_ALLOWED
public static final StatusCode REPLACE_NOT_ALLOWED
-
DIRECTORY_CANNOT_BE_CREATED
public static final StatusCode DIRECTORY_CANNOT_BE_CREATED
-
DIRECTORY_DOES_NOT_EXIST
public static final StatusCode DIRECTORY_DOES_NOT_EXIST
-
-
Field Detail
-
Lookup
public static final Map<Byte,StatusCode> Lookup
-
-
Method Detail
-
values
public static StatusCode[] 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 (StatusCode c : StatusCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StatusCode valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
public byte getCode()
-
readStatusCode
public static StatusCode readStatusCode(ByteBuffer buffer)
-
readStatusCode
public static StatusCode readStatusCode(byte b)
-
-