Enum Class DataTypeClass
java.lang.Object
java.lang.Enum<DataTypeClass>
com.inductiveautomation.ignition.common.sqltags.model.types.DataTypeClass
- All Implemented Interfaces:
Serializable
,Comparable<DataTypeClass>
,Constable
Represents a "category" of data type, since often in SQLTags we do this based on a broad category- int, float, string
or date.
DataSet is included since the type is defined in DataType, though it is not currently used in SQLTags.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionCompares the two data type classes and returns the most compatible typeReturns a datatype capable of handling this type class.int
Returns the type code for this AlertModeClass<?>
Gets the java type that would be able to hold a value of this class.static DataTypeClass
getTypeForValue
(int val) Returns the AlertMode for the given type code.boolean
static DataTypeClass
Returns the enum constant of this class with the specified name.static DataTypeClass[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Integer
-
Float
-
String
-
DateTime
-
DataSet
-
-
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
-
getIntValue
public int getIntValue()Returns the type code for this AlertMode -
isNumeric
public boolean isNumeric() -
getTypeForValue
Returns the AlertMode for the given type code. Returns null if there is node defined mode for the given code -
getJavaType
Gets the java type that would be able to hold a value of this class. -
getDataType
Returns a datatype capable of handling this type class. -
getCompatibleType
Compares the two data type classes and returns the most compatible type
-