public class EnumValueSupport extends AbstractMetaValue implements EnumValue
| Constructor and Description |
|---|
EnumValueSupport(EnumMetaType metaType,
Enum<?> value)
Create a new EnumValueSupport from an Enum value.
|
EnumValueSupport(EnumMetaType metaType,
String value)
Create a new EnumValueSupport.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
EnumMetaType |
getMetaType()
Get the metatype for this value
|
String |
getValue()
Get the value.
|
int |
hashCode() |
void |
setValue(String value)
Set the value.
|
String |
toString() |
clonepublic EnumValueSupport(EnumMetaType metaType, String value)
metaType - the enum meta typevalue - the valueIllegalArgumentException - for a null enum MetaTypepublic EnumValueSupport(EnumMetaType metaType, Enum<?> value)
metaType - the enum meta typevalue - the enum instanceIllegalArgumentException - for a null enum MetaTypepublic EnumMetaType getMetaType()
MetaValuegetMetaType in interface EnumValuegetMetaType in interface MetaValuepublic String getValue()
public void setValue(String value)
value - the value.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.