|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.metatype.api.values.AbstractMetaValue
org.jboss.metatype.api.values.EnumValueSupport
public class EnumValueSupport
EnumValue. TODO tests
| Constructor Summary | |
|---|---|
EnumValueSupport(EnumMetaType metaType,
Enum<?> value)
Create a new EnumValueSupport from an Enum value. |
|
EnumValueSupport(EnumMetaType metaType,
String value)
Create a new EnumValueSupport. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.jboss.metatype.api.values.AbstractMetaValue |
|---|
clone |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.metatype.api.values.MetaValue |
|---|
clone |
| Constructor Detail |
|---|
public EnumValueSupport(EnumMetaType metaType,
String value)
metaType - the enum meta typevalue - the value
IllegalArgumentException - for a null enum MetaType
public EnumValueSupport(EnumMetaType metaType,
Enum<?> value)
metaType - the enum meta typevalue - the enum instance
IllegalArgumentException - for a null enum MetaType| Method Detail |
|---|
public EnumMetaType getMetaType()
MetaValue
getMetaType in interface EnumValuegetMetaType in interface MetaValuepublic String getValue()
getValue in interface EnumValuepublic void setValue(String value)
value - the value.public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||