|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<PersonalRelationship>
com.ail.party.PersonalRelationship
public enum PersonalRelationship
Type safe enumeration representing constant values for PersonalRelationship.
| Enum Constant Summary | |
|---|---|
COLLEGE
College |
|
FRIEND
Friend |
|
NONE
None |
|
RELATIVE
Relative |
|
SELF
Self |
|
SPOUSE
Spouse |
|
UNDEFINED
Undefined |
|
| Method Summary | |
|---|---|
static PersonalRelationship |
forName(java.lang.String name)
This method is similar to the valueOf() method offered by Java's Enum type, but in this case it will match either the Enum's name or the longName. |
java.lang.String |
getLongName()
Returns the same value as longName(). |
java.lang.String |
getName()
Returns the same value as name(). |
int |
getOrdinal()
Return this Enum's ordinal id. |
java.lang.String |
longName()
The long name for an enum. |
static PersonalRelationship |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PersonalRelationship[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
java.lang.String |
valuesAsCsv()
|
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ail.core.TypeEnum |
|---|
name |
| Enum Constant Detail |
|---|
public static final PersonalRelationship UNDEFINED
public static final PersonalRelationship SELF
public static final PersonalRelationship SPOUSE
public static final PersonalRelationship RELATIVE
public static final PersonalRelationship FRIEND
public static final PersonalRelationship COLLEGE
public static final PersonalRelationship NONE
| Method Detail |
|---|
public static final PersonalRelationship[] values()
for(PersonalRelationship c : PersonalRelationship.values())
System.out.println(c);
public static PersonalRelationship valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namepublic java.lang.String valuesAsCsv()
public java.lang.String longName()
TypeEnum
longName in interface TypeEnumpublic static PersonalRelationship forName(java.lang.String name)
name - The name to lookup
public java.lang.String getName()
TypeEnum
getName in interface TypeEnumpublic java.lang.String getLongName()
TypeEnum
getLongName in interface TypeEnumpublic int getOrdinal()
TypeEnum
getOrdinal in interface TypeEnum
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||