@ Override public String asString ( Object object ) { // at this point object is guaranteed to be enumeration Enum < ? > e = ( Enum < ? > ) object ; if ( object instanceof OrdinalEnum ) { return Integer . toString ( e . ordinal ( ) ) ; } return e . name ( ) ; }
Get enumeration constant name .