|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xins.common.types.Type org.xins.common.types.EnumType com.mycompany.myproject.types.Gender
Enum type Gender.
Nested Class Summary | |
static class |
Gender.Item
Item of the Gender enumeration type. |
Field Summary | |
static Gender.Item |
FEMALE
The female item. |
static Gender.Item |
MALE
The male item. |
static Gender |
SINGLETON
The only instance of this class. |
Fields inherited from class org.xins.common.types.EnumType |
_namesToItems, _valuesToItems |
Method Summary | |
static Gender.Item |
fromStringForOptional(String string)
|
static Gender.Item |
fromStringForRequired(String string)
|
Object |
fromStringImpl(String value)
|
static Gender.Item |
getItemByName(String name)
Gets the Item for the specified string name. |
static Gender.Item |
getItemByValue(String value)
Gets the Item for the specified string value. |
Methods inherited from class org.xins.common.types.EnumType |
getEnumItems, getNameByValue, getValueByName, isValidValueImpl, toString, toString |
Methods inherited from class org.xins.common.types.Type |
checkValue, fromString, getName, getValueClass, isValidValue, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Gender.Item MALE
public static final Gender.Item FEMALE
public static final Gender SINGLETON
null
.
Method Detail |
public static Gender.Item fromStringForRequired(String string) throws IllegalArgumentException, TypeValueException
IllegalArgumentException
TypeValueException
public static Gender.Item fromStringForOptional(String string) throws TypeValueException
TypeValueException
public static Gender.Item getItemByValue(String value) throws TypeValueException
Item
for the specified string value.
value
- the value for which to lookup the matching Gender.Item
instance,
can be null
, in which case null
is also
returned.
Gender.Item
instance, or null
if and only
if value == null
.
TypeValueException
- if the specified value does not denote an existing item.public static Gender.Item getItemByName(String name) throws TypeValueException
Item
for the specified string name.
name
- the name for which to lookup the matching Gender.Item
instance,
can be null
, in which case null
is also
returned.
Gender.Item
instance, or null
if and only
if name == null
.
TypeValueException
- if the specified name does not denote an existing item.public Object fromStringImpl(String value) throws TypeValueException
TypeValueException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |