Enum ParameterType



  • public enum ParameterType
    extends java.lang.Enum<ParameterType>
    Indicate type of RPC's formal parameter.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      bool
      3-state boolean type.
      integer
      Signed 32-bit integer number type.
      real
      Double-precision floating point number type.
      record
      D2000 Structured type.
      text
      Unicode string type.
      time
      Absolute time type with millisecond precision.
    • 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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • bool

        public static final ParameterType bool
        3-state boolean type.

        ESL BOOL, internal Java D2Bool, JAPI UnivalBoolean.

        Value can be stored as VBool or Boolean.

      • integer

        public static final ParameterType integer
        Signed 32-bit integer number type.

        ESL INT, internal Java D2Int, JAPI UnivalInt.

        Value can be stored as Integer.

      • real

        public static final ParameterType real
        Double-precision floating point number type.

        ESL REAL, internal Java D2Double, JAPI UnivalReal.

        Value can be stored as Double.

      • time

        public static final ParameterType time
        Absolute time type with millisecond precision.

        ESL TIME, internal Java D2TimeAbs, JAPI UnivalTime.

        Value can be stored as Date or Long (milliseconds from unix epoch).

      • text

        public static final ParameterType text
        Unicode string type.

        ESL TEXT, internal Java D2Text, JAPI UnivalText.

        Value can be stored as String.

      • record

        public static final ParameterType record
        D2000 Structured type.

        ESL RECORD NOALIAS, internal Java D2SD subclasses (e.g. D2$...), JAPI UnivalRecord.

        Value can be stored as List with type parameter properly annotated with annotations from sk.ipesoft.d2000.d2japi.annotations.structureBinding package. Note that only interface 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 name
        java.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)