public static final class ParameterInfo.DataType extends Enum
Modifier and Type | Field and Description |
---|---|
static ParameterInfo.DataType |
BOOLEAN
Represents boolean as
java.lang.Boolean . |
static ParameterInfo.DataType |
DATETIME
Represents datetime data type as
java.util.Calendar . |
static ParameterInfo.DataType |
INTEGER
Represents integer data type as
java.lang.Integer . |
static ParameterInfo.DataType |
LONG
Represents long data type as
java.lang.Long . |
static ParameterInfo.DataType |
STRING
Represents the
java.lang.String data type. |
Modifier and Type | Method and Description |
---|---|
static ParameterInfo.DataType |
getDataType(Object obj)
Returns the
DataType associated with given object based on its datatype. |
static String |
getSimpleValue(ParameterInfo.DataType dataType)
Returns the string representing the simple value for the given
DataType enum. |
static ParameterInfo.DataType |
getType(String type)
Returns the DataType enum for the corresponding string value.
|
static boolean |
isValid(ParameterInfo.DataType dataType, Object obj)
Determine if the type of the Object is valid for the DataType.
|
String |
toString(Locale locale)
Enterprise Manager support to acquire a localized string value.
|
String |
value()
Returns the value of this property data type as String.
|
static ParameterInfo.DataType |
valueOf(String name) |
static ParameterInfo.DataType[] |
values() |
public static final ParameterInfo.DataType STRING
java.lang.String
data type.public static final ParameterInfo.DataType INTEGER
java.lang.Integer
.public static final ParameterInfo.DataType LONG
java.lang.Long
.public static final ParameterInfo.DataType BOOLEAN
java.lang.Boolean
.public static final ParameterInfo.DataType DATETIME
java.util.Calendar
.public static ParameterInfo.DataType[] values()
public static ParameterInfo.DataType valueOf(String name)
public String value()
public static ParameterInfo.DataType getType(String type)
type
- the type as String for which corresponding Enum is returned.IllegalArgumentException
- if no enum is defined for the given String argument.public static ParameterInfo.DataType getDataType(Object obj)
DataType
associated with given object based on its datatype. This returns null
if value
is null
or has an unsupported datatype.obj
- the Object to check. This can be null
.DataType
associated with the value, or null
if no value was specified or it has an unsupported datatype.public static boolean isValid(ParameterInfo.DataType dataType, Object obj)
obj
is null.dataType
- the DataType to check against the object type.obj
- the Object to check type against the DataType.public static String getSimpleValue(ParameterInfo.DataType dataType)
DataType
enum. The simple value represents the value used to specify the datatype of a request parameter in the runtime store.dataType
- the DataType