public enum SecretQuestion extends Enum<SecretQuestion>
Java class for SecretQuestion.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="SecretQuestion">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="None"/>
<enumeration value="FavoritePetsName"/>
<enumeration value="FavoriteMovie"/>
<enumeration value="Anniversary"/>
<enumeration value="FatherMiddleName"/>
<enumeration value="SpouseMiddleName"/>
<enumeration value="FirstChildMiddleName"/>
<enumeration value="HighSchoolName"/>
<enumeration value="FavoriteTeacherName"/>
<enumeration value="FavoriteSportsTeam"/>
</restriction>
</simpleType>
Enum Constant and Description |
---|
ANNIVERSARY |
FATHER_MIDDLE_NAME |
FAVORITE_MOVIE |
FAVORITE_PETS_NAME |
FAVORITE_SPORTS_TEAM |
FAVORITE_TEACHER_NAME |
FIRST_CHILD_MIDDLE_NAME |
HIGH_SCHOOL_NAME |
NONE |
SPOUSE_MIDDLE_NAME |
Modifier and Type | Method and Description |
---|---|
static SecretQuestion |
fromValue(String v) |
String |
value() |
static SecretQuestion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SecretQuestion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecretQuestion NONE
public static final SecretQuestion FAVORITE_PETS_NAME
public static final SecretQuestion FAVORITE_MOVIE
public static final SecretQuestion ANNIVERSARY
public static final SecretQuestion FATHER_MIDDLE_NAME
public static final SecretQuestion SPOUSE_MIDDLE_NAME
public static final SecretQuestion FIRST_CHILD_MIDDLE_NAME
public static final SecretQuestion HIGH_SCHOOL_NAME
public static final SecretQuestion FAVORITE_TEACHER_NAME
public static final SecretQuestion FAVORITE_SPORTS_TEAM
public static SecretQuestion[] values()
for (SecretQuestion c : SecretQuestion.values()) System.out.println(c);
public static SecretQuestion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String value()
public static SecretQuestion fromValue(String v)
Copyright © 2024. All rights reserved.