Enum Class BMValueType
- All Implemented Interfaces:
Serializable
,Comparable<BMValueType>
,Constable
BM Object/Array value type
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionto initialize anotherWffBMArray
to initialize binary data.to initialize anotherWffBMObject
to initialize boolean valueto initialize function, eg: function(arg) {alert(arg);}Only for internal use not for development purpose.to initialize null valueIt can be int, float, long, double or any 64 bit floating point numberto initialize reg expressionto initialize String valueto assign unidentified in JavaScript value, the value can be null for this data type. -
Method Summary
Modifier and TypeMethodDescriptionstatic BMValueType
getInstanceByType
(byte type) byte
getType()
static BMValueType
Returns the enum constant of this class with the specified name.static BMValueType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRING
to initialize String value -
NUMBER
It can be int, float, long, double or any 64 bit floating point number -
UNDEFINED
to assign unidentified in JavaScript value, the value can be null for this data type. -
NULL
to initialize null value -
BOOLEAN
to initialize boolean value -
BM_OBJECT
to initialize anotherWffBMObject
-
BM_ARRAY
to initialize anotherWffBMArray
-
REG_EXP
to initialize reg expression -
FUNCTION
to initialize function, eg: function(arg) {alert(arg);}WffBMObject bmObject = new WffBMObject(); bmObject.put("testMeFun", BMValueType.FUNCTION, "function(arg) {alert(arg);}"); so the usage would be jsObject.testMeFun("Hello world");
-
BM_BYTE_ARRAY
to initialize binary data. In java it's byte data type and in JavaScript it's Int8Array. -
INTERNAL_BYTE
Only for internal use not for development purpose. If value is a byte.
-
-
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
-
getType
public byte getType() -
getInstanceByType
- Parameters:
type
-- Returns:
- the
BMValueType
instance by type - Since:
- 2.0.0
-