public enum Id extends Enum<Id> implements Key
Enum Constant and Description |
---|
charbaId
Name of java script property
|
Modifier and Type | Method and Description |
---|---|
static int |
get(Key key,
NativeObject nativeObject)
Returns the property value from java script object, when the ID is stored as integer
|
static String |
get(NativeObject nativeObject)
Returns the property value from java script object.
|
static String |
get(NativeObjectContainer nativeObjectContainer)
Returns the property value from java script object.
|
static Id |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Id[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Id charbaId
public static Id[] values()
for (Id c : Id.values()) System.out.println(c);
public static Id 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 nullpublic static String get(NativeObjectContainer nativeObjectContainer)
nativeObjectContainer
- java script object containerUndefinedValues.STRING
if not existpublic static String get(NativeObject nativeObject)
nativeObject
- java script objectUndefinedValues.STRING
if not existpublic static int get(Key key, NativeObject nativeObject)
key
- the key to search inside the objectnativeObject
- java script objectUndefinedValues.INTEGER
if not exist