Enum AttributeDataType
- java.lang.Object
-
- java.lang.Enum<AttributeDataType>
-
- com.inteliqua.rest.common.attribute.AttributeDataType
-
- All Implemented Interfaces:
Serializable,Comparable<AttributeDataType>
public enum AttributeDataType extends Enum<AttributeDataType>
Enum representing different data types for attributes.This enum defines the possible data types that can be used for attributes in the system.
- Author:
- tpapad
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AttributeDataTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AttributeDataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final AttributeDataType STRING
Represents a string data type.
-
INTEGER
public static final AttributeDataType INTEGER
Represents an integer data type.
-
DATE
public static final AttributeDataType DATE
Represents a date data type.
-
BOOLEAN
public static final AttributeDataType BOOLEAN
Represents a boolean data type.
-
TEXT
public static final AttributeDataType TEXT
Represents a text data type, typically for longer string values.
-
-
Method Detail
-
values
public static AttributeDataType[] 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 (AttributeDataType c : AttributeDataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttributeDataType 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 nameNullPointerException- if the argument is null
-
-