Enum ParameterType
- java.lang.Object
-
- java.lang.Enum<ParameterType>
-
- sk.ipesoft.d2000.d2japi.annotations.ParameterType
-
public enum ParameterType extends java.lang.Enum<ParameterType>
Indicate type of RPC's formal parameter.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description sk.ipesoft.d2000.d2japi.annotations.UnivalCoder
getUnivalDecoder(java.lang.reflect.Type parameterClass, UnivalConvertor convertor)
sk.ipesoft.d2000.d2japi.annotations.UnivalCoder
getUnivalEncoder(java.lang.reflect.Type parameterClass, UnivalConvertor convertor)
sk.ipesoft.d2000.d2japi.annotations.UnivalExtractor
getUnivalExtractor(java.lang.reflect.Type parameterClass, UnivalConvertor convertor)
static ParameterType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ParameterType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
bool
public static final ParameterType bool
3-state boolean type.ESL
BOOL
, internal JavaD2Bool
, JAPIUnivalBoolean
.Value can be stored as
VBool
orBoolean
.
-
integer
public static final ParameterType integer
Signed 32-bit integer number type.ESL
INT
, internal JavaD2Int
, JAPIUnivalInt
.Value can be stored as
Integer
.
-
real
public static final ParameterType real
Double-precision floating point number type.ESL
REAL
, internal JavaD2Double
, JAPIUnivalReal
.Value can be stored as
Double
.
-
time
public static final ParameterType time
Absolute time type with millisecond precision.ESL
TIME
, internal JavaD2TimeAbs
, JAPIUnivalTime
.Value can be stored as
Date
orLong
(milliseconds from unix epoch).
-
text
public static final ParameterType text
Unicode string type.ESL
TEXT
, internal JavaD2Text
, JAPIUnivalText
.Value can be stored as
String
.
-
record
public static final ParameterType record
D2000 Structured type.ESL
RECORD NOALIAS
, internal JavaD2SD
subclasses (e.g.D2$...
), JAPIUnivalRecord
.Value can be stored as
List
with type parameter properly annotated with annotations fromsk.ipesoft.d2000.d2japi.annotations.structureBinding
package. Note that onlyinterface List
is supported, its implementations are not.
-
-
Method Detail
-
values
public static ParameterType[] 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 (ParameterType c : ParameterType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParameterType 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
-
getUnivalDecoder
public abstract sk.ipesoft.d2000.d2japi.annotations.UnivalCoder getUnivalDecoder(java.lang.reflect.Type parameterClass, UnivalConvertor convertor)
-
getUnivalEncoder
public abstract sk.ipesoft.d2000.d2japi.annotations.UnivalCoder getUnivalEncoder(java.lang.reflect.Type parameterClass, UnivalConvertor convertor)
-
getUnivalExtractor
public abstract sk.ipesoft.d2000.d2japi.annotations.UnivalExtractor getUnivalExtractor(java.lang.reflect.Type parameterClass, UnivalConvertor convertor)
-
-