|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.bval.model.DynaTypeEnum
public class DynaTypeEnum
Description: ("artificial" enum with custom values).
Nested Class Summary | |
---|---|
static class |
DynaTypeEnum.Value
Represents a single "enum" instance (= the value). |
Constructor Summary | |
---|---|
DynaTypeEnum(Class<?> enumClass)
Create a new DynaTypeEnum instance. |
|
DynaTypeEnum(Class<?> enumClass,
String... names)
Create a new DynaTypeEnum instance. |
Method Summary | |
---|---|
DynaTypeEnum.Value[] |
getEnumConstants()
Get the emulated constants. |
String |
getName()
Get the name of the enum class. |
Class<?> |
getRawType()
Resolve the type indirection. |
boolean |
isAssignableFrom(Class<?> cls)
Learn whether the wrapped class is assignable from cls . |
boolean |
isEnum()
Learn whether the referred class is, in fact, an enum class. |
void |
setEnumNames(String[] names)
Set the enumeration value names. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynaTypeEnum(Class<?> enumClass)
enumClass
- public DynaTypeEnum(Class<?> enumClass, String... names)
enumClass
- names
- Method Detail |
---|
public void setEnumNames(String[] names)
names
- public String getName()
public Class<?> getRawType()
getRawType
in interface DynaType
public boolean isEnum()
public DynaTypeEnum.Value[] getEnumConstants()
public boolean isAssignableFrom(Class<?> cls)
cls
.
cls
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |