package at.gv.util.xsd.persondata; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; /** *
Java class for MaritalStatusType. * *
The following schema fragment specifies the expected content contained within this class. *
*
* <simpleType name="MaritalStatusType">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="single"/>
* <enumeration value="married"/>
* <enumeration value="divorced"/>
* <enumeration value="widowed"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "MaritalStatusType")
@XmlEnum
public enum MaritalStatusType {
@XmlEnumValue("single")
SINGLE("single"),
@XmlEnumValue("married")
MARRIED("married"),
@XmlEnumValue("divorced")
DIVORCED("divorced"),
@XmlEnumValue("widowed")
WIDOWED("widowed");
private final String value;
MaritalStatusType(String v) {
value = v;
}
public String value() {
return value;
}
public static MaritalStatusType fromValue(String v) {
for (MaritalStatusType c: MaritalStatusType.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}