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)
TwoWayStringBridge
stringToObject
in interface TwoWayStringBridge
stringValue
- The index value.Object
.public String objectToString(Object object)
StringBridge
objectToString
in interface StringBridge
object
- The object to transform into a string representation.null
. It can be empty though.public void setAppliedOnType(Class<?> returnType)
AppliedOnTypeAwareBridge
setAppliedOnType
in interface AppliedOnTypeAwareBridge
returnType
- return typeCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved