Package uk.co.sculptor.kflibjava
Enum Class Field.LogicalDataType
- All Implemented Interfaces:
Serializable
,Comparable<Field.LogicalDataType>
,Constable
- Enclosing class:
Field
Field Sculptor Logical Data type (SCLT_*) enumerator.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCurrencyDate (day number)Date and time (seconds)Elapsed daysElapsed hoursElapsed millisecondsElapsed millisecondsElapsed minutesElapsed secondsSculptor 2 moneyNo interpretationClock time (milliseconds)Clock time (seconds) -
Method Summary
Modifier and TypeMethodDescriptionstatic Field.LogicalDataType
getFromByte
(byte sclt) Convert a received value to LogicalDataType enumeratorstatic Field.LogicalDataType
getLDTFromDotdData
(int type) This function is used to return the Field.LogicalDataType value extracted from the dotd file field informationstatic Field.LogicalDataType
Returns the enum constant of this class with the specified name.static Field.LogicalDataType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NULL
No interpretation -
DAYNO
Date (day number) -
TSECS
Clock time (seconds) -
DTIME
Date and time (seconds) -
EDAYS
Elapsed days -
EHOURS
Elapsed hours -
EMINS
Elapsed minutes -
ESECS
Elapsed seconds -
EMILS
Elapsed milliseconds -
EMICS
Elapsed milliseconds -
TMILS
Clock time (milliseconds) -
CURRENCY
Currency -
MONEY
Sculptor 2 money
-
-
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 LogicalDataType enumerator- Parameters:
sclt
- the Sculptor value to be translated to enumerator- Returns:
- the enumerator value
- Throws:
KfException
- when the sclt value is invalid
-
getLDTFromDotdData
This function is used to return the Field.LogicalDataType value extracted from the dotd file field information- Parameters:
type
- a dotd field type to generate the LogicalDataType from- Returns:
- The corresponding Field.LogicalDataType value
-