public class EnumBridge extends Object implements TwoWayStringBridge, AppliedOnTypeAwareBridge
| Constructor and Description |
|---|
EnumBridge() |
| Modifier and Type | Method and Description |
|---|---|
String |
objectToString(Object object)
Converts the object representation to a string.
|
void |
setAppliedOnType(Class<?> returnType)
Set the return type of the bridge (the type of the field linked to the bridge).
|
Enum<? extends Enum> |
stringToObject(String stringValue)
Convert the index string representation to an object.
|
public Enum<? extends Enum> stringToObject(String stringValue)
TwoWayStringBridgestringToObject in interface TwoWayStringBridgestringValue - The index value.Object.public String objectToString(Object object)
StringBridgeobjectToString in interface StringBridgeobject - The object to transform into a string representation.null. It can be empty though.public void setAppliedOnType(Class<?> returnType)
AppliedOnTypeAwareBridgesetAppliedOnType in interface AppliedOnTypeAwareBridgereturnType - return typeCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved