public enum XmlPerson extends Enum<XmlPerson>
Java class for person.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="person">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="FIRST"/>
<enumeration value="SECOND"/>
<enumeration value="THIRD"/>
</restriction>
</simpleType>
| Modifier and Type | Method and Description |
|---|---|
static XmlPerson |
fromValue(String v) |
String |
value() |
static XmlPerson |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XmlPerson[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XmlPerson FIRST
public static final XmlPerson SECOND
public static final XmlPerson THIRD
public static XmlPerson[] values()
for (XmlPerson c : XmlPerson.values()) System.out.println(c);
public static XmlPerson 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()
Copyright © 2020. All Rights Reserved.