public enum Gender extends Enum<Gender>
<xsd:simpleType name="GenderType"> <xsd:annotation> <xsd:documentation> Gender of the natural person.</xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:enumeration value="Male"/> <xsd:enumeration value="Female"/> <xsd:enumeration value="Unspecified"/> </xsd:restriction> </xsd:simpleType>
Enum Constant and Description |
---|
FEMALE |
MALE |
NOT_SPECIFIED |
UNSPECIFIED |
Modifier and Type | Method and Description |
---|---|
static Gender |
fromString(String val) |
String |
getValue() |
static eu.eidas.auth.commons.lang.EnumMapper<String,Gender> |
mapper() |
String |
toString() |
static Gender |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Gender[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Gender MALE
public static final Gender FEMALE
public static final Gender UNSPECIFIED
public static final Gender NOT_SPECIFIED
public static Gender[] values()
for (Gender c : Gender.values()) System.out.println(c);
public static Gender 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 nullCopyright © 2020. All Rights Reserved.