|
||||||||||
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 MetaTypepublic EnumValueSupport(EnumMetaType metaType, Enum<?> value)
metaType
- the enum meta typevalue
- the enum instance
IllegalArgumentException
- for a null enum MetaTypeMethod Detail |
---|
public EnumMetaType getMetaType()
MetaValue
getMetaType
in interface EnumValue
getMetaType
in interface MetaValue
public String getValue()
getValue
in interface EnumValue
public void setValue(String value)
value
- the value.public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |