Package org.asnlab.asndt.runtime.conv
Class ReflectionEnumeratedConverter
java.lang.Object
org.asnlab.asndt.runtime.conv.AsnConverter
org.asnlab.asndt.runtime.conv.EnumeratedConverter
org.asnlab.asndt.runtime.conv.ReflectionEnumeratedConverter
-
Field Summary
FieldsFields inherited from class org.asnlab.asndt.runtime.conv.EnumeratedConverter
CONVERTER -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
enumClass
-
-
Constructor Details
-
ReflectionEnumeratedConverter
-
-
Method Details
-
toValue
Description copied from class:EnumeratedConverterReturn the enum value- Specified by:
toValuein classEnumeratedConverter- Parameters:
object- The ENUMERATED value object- Returns:
- The integer value associated with this ENUMERATED value
-
toObject
Description copied from class:EnumeratedConverterReturn the enum object- Specified by:
toObjectin classEnumeratedConverter- Parameters:
value- The integer value associated with this ENUMERATED value- Returns:
- The ENUMERATED value object
-
toOrdinal
Description copied from class:EnumeratedConverterReturn the enum ordinal (0 base)- Specified by:
toOrdinalin classEnumeratedConverter- Parameters:
object- The ENUMERATED value object- Returns:
- The enum ordinal (0 base) of this ENUMERATED value
-
toEnum
Description copied from class:EnumeratedConverterReturn the enum object- Specified by:
toEnumin classEnumeratedConverter- Parameters:
ordinal- The enum ordinal (0 base) of this ENUMERATED value- Returns:
- The ENUMERATED value object
-
isAnonymous
public boolean isAnonymous()- Overrides:
isAnonymousin classAsnConverter
-