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() |
clone
public 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()
MetaValue
getMetaType
in interface EnumValue
getMetaType
in interface MetaValue
public String getValue()
public void setValue(String value)
value
- the value.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.