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 bytegetCode()static StatusCodereadStatusCode(byte b)static StatusCodereadStatusCode(ByteBuffer buffer)static StatusCodevalueOf(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
-
CreateNotAllowed
public static final StatusCode CreateNotAllowed
-
NotPerformed
public static final StatusCode NotPerformed
-
FileDoesNotExist
public static final StatusCode FileDoesNotExist
-
DeleteNotAllowed
public static final StatusCode DeleteNotAllowed
-
OldFileNameDoesNotExist
public static final StatusCode OldFileNameDoesNotExist
-
NewFileNameAlreadyExists
public static final StatusCode NewFileNameAlreadyExists
-
RenameNotAllowed
public static final StatusCode RenameNotAllowed
-
FileName1DoesNotExist
public static final StatusCode FileName1DoesNotExist
-
FileName2DoesNotExist
public static final StatusCode FileName2DoesNotExist
-
AppendNotAllowed
public static final StatusCode AppendNotAllowed
-
ReplaceNotAllowed
public static final StatusCode ReplaceNotAllowed
-
DirectoryCannotBeCreated
public static final StatusCode DirectoryCannotBeCreated
-
DirectoryDoesNotExist
public static final StatusCode DirectoryDoesNotExist
-
-
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)
-
-