public enum MDataType extends Enum<MDataType>
Enum Constant and Description |
---|
CUSTOM_STRING
A String whose representation is handled by a
CustomFieldHandler . |
DECIMAL_STRING
A string containing a decimal number representation.
|
INTEGER_STRING
A string containing an integer representation.
|
STRING
Character string.
|
Modifier and Type | Method and Description |
---|---|
static MDataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MDataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MDataType STRING
public static final MDataType INTEGER_STRING
Represented internally as a BigInteger
.
It is possible to parse the value of an item of this type from any object
whose toString
method returns a value that can
be successfully supplied to the
BigInteger(String)
constructor.
In addition, if the field permits
it then
an empty field (zero length string} could also be parsed.
public static final MDataType DECIMAL_STRING
A decimal number has an optional decimal point and is parsed, compared
and output according to the scale
of the
field.
Represented internally as a BigDecimal
.
It is possible to parse the value of an item of this type from any object
whose toString
method returns a value that can
be successfully supplied to the
BigDecimal(String)
constructor.
In addition, if the field permits
it then
an empty field (zero length string} could also be parsed.
public static final MDataType CUSTOM_STRING
CustomFieldHandler
.
In this case the behaviour of the data type is delegated to a user written class.
public static MDataType[] values()
for (MDataType c : MDataType.values()) System.out.println(c);
public static MDataType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016 Push Technology Ltd. All Rights Reserved.