Package uk.co.sculptor.kflibjava
Enum Class KeyedFile.KfStat
- All Implemented Interfaces:
Serializable
,Comparable<KeyedFile.KfStat>
,Constable
- Enclosing class:
KeyedFile
KeyedFile operation status values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionInvalid argument or required argument is nullBad file or data dictionaryCannot connect to serverMedia read/write errorFile existsLimit exceeded (evaluation version)No permissionNo record selectedNo such fileNo such indexNo such record or keyOkayOut of memoryRecord already existsRecord or file in useSystem error - check log filesUpdate errorUser licence exceededNo defined KfStat. -
Method Summary
Modifier and TypeMethodDescriptionbyte
getByte()
Returns the KeyedFile KfStat as the byte value used on KfServerThis function is used to return the user description for the Sculptor error.static KeyedFile.KfStat
getFromByte
(byte kfstat) Convert a received value to a KfStat enumeratorstatic KeyedFile.KfStat
Returns the enum constant of this class with the specified name.static KeyedFile.KfStat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
No defined KfStat. -
OK
Okay -
NSR
No such record or key -
RE
Record already exists -
RIU
Record or file in use -
NRS
No record selected -
NSF
No such file -
NSI
No such index -
LE
Limit exceeded (evaluation version) -
FE
File exists -
CCS
Cannot connect to server -
ERR
Media read/write error -
NP
No permission -
ULE
User licence exceeded -
BAD
Bad file or data dictionary -
UE
Update error -
OOM
Out of memory -
SYS
System error - check log files -
ARG
Invalid argument or required argument is null
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getFromByte
Convert a received value to a KfStat enumerator- Parameters:
kfstat
- The Sculptor value to be translated to enumerator- Returns:
- The enumerator value
- Throws:
KfException
- When the kfStat value is invalid
-
getByte
public byte getByte()Returns the KeyedFile KfStat as the byte value used on KfServer- Returns:
- KeyedFile KfStat as the byte value used on KfServer
-
getDescription
This function is used to return the user description for the Sculptor error.- Returns:
- The current enumerator description.
-