Package com.smartgwt.client.bean
Enum BeanValueType.Convertability
- All Implemented Interfaces:
Serializable
,Comparable<BeanValueType.Convertability>
,Constable
- Enclosing class:
- BeanValueType<ValueType>
An enum used to indicate how well a BeanValueType can handle a
conversion.
Used to choose among multiple getters or setters, if available.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe value is of this type, so conversion is exact.The value can be converted to the type, and this type is preferrable to others.The value can be converted to the type, but other types might handle it better..The value cannot be converted to the type. -
Method Summary
Modifier and TypeMethodDescriptionstatic BeanValueType.Convertability
Returns the enum constant of this type with the specified name.static BeanValueType.Convertability[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNSUPPORTED
The value cannot be converted to the type. -
SUPPORTED
The value can be converted to the type, but other types might handle it better.. -
PREFERRED
The value can be converted to the type, and this type is preferrable to others. -
EXACT
The value is of this type, so conversion is exact.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-