java.lang.Object
java.lang.Enum<DataType>
de.fraunhofer.iese.mydata.policy.parameter.DataType
All Implemented Interfaces:
Serializable, Comparable<DataType>

public enum DataType extends Enum<DataType>
Types that are currently supported by MYDATA.
Author:
Fraunhofer IESE
  • Enum Constant Details

    • STRING

      public static final DataType STRING
      The string.
    • BOOL

      public static final DataType BOOL
      The bool.
    • INT

      public static final DataType INT
      The int.
    • LONG

      public static final DataType LONG
      The long.
    • FLOAT

      public static final DataType FLOAT
      The float.
    • DOUBLE

      public static final DataType DOUBLE
      The double.
    • DATAUSAGE

      public static final DataType DATAUSAGE
      The datausage.
    • XPATH

      public static final DataType XPATH
      The xpath.
    • REGEX

      public static final DataType REGEX
      The regex.
    • CONTEXT

      public static final DataType CONTEXT
      The context.
    • BINARY

      public static final DataType BINARY
      The binary.
    • STRING_ARRAY

      public static final DataType STRING_ARRAY
      The string array.
    • ARRAYLIST

      public static final DataType ARRAYLIST
      The array.list
  • Method Details

    • values

      public static DataType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static DataType 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 name
      NullPointerException - if the argument is null
    • getByClass

      public static DataType getByClass(Class<?> clazz)
      Gets the by class.
      Parameters:
      clazz - the clazz
      Returns:
      the by class
    • getById

      public static DataType getById(int id)
      Gets the by component_id.
      Parameters:
      id - the component_id
      Returns:
      the by component_id
    • getDataTypeClass

      public Class<?> getDataTypeClass()
      Gets the data type class.
      Returns:
      the data type class
    • getDataTypeId

      public int getDataTypeId()
      Gets the data type component_id.
      Returns:
      the data type component_id
    • matches

      public boolean matches(Class<?> clazz, int id)
      Matches.
      Parameters:
      clazz - the clazz
      id - the component_id
      Returns:
      true, if successful