Enum Id
- java.lang.Object
-
- java.lang.Enum<Id>
-
- org.pepstock.charba.client.commons.Id
-
- All Implemented Interfaces:
Serializable
,Comparable<Id>
,Key
public enum Id extends Enum<Id> implements Key
Enums the property ID used by CHARBA to identify the chart.- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHARBA_ID
Name of java script property
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.String
value()
Returns the name value of propertystatic 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.
-
-
-
Enum Constant Detail
-
CHARBA_ID
public static final Id CHARBA_ID
Name of java script property
-
-
Method Detail
-
values
public static Id[] 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 (Id c : Id.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Id 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
-
value
public String value()
Description copied from interface:Key
Returns the name value of property
-
get
public static String get(NativeObjectContainer nativeObjectContainer)
Returns the property value from java script object.- Parameters:
nativeObjectContainer
- java script object container- Returns:
- the property value or
Undefined.STRING
if not exist
-
get
public static String get(NativeObject nativeObject)
Returns the property value from java script object.- Parameters:
nativeObject
- java script object- Returns:
- the property value or
Undefined.STRING
if not exist
-
-