org.uddi.api_v3.InfoSelection Maven / Gradle / Ivy
package org.uddi.api_v3;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for infoSelection.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="infoSelection">
* <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
* <enumeration value="all"/>
* <enumeration value="hidden"/>
* <enumeration value="visible"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "infoSelection")
@XmlEnum
public enum InfoSelection {
@XmlEnumValue("all")
ALL("all"),
@XmlEnumValue("hidden")
HIDDEN("hidden"),
@XmlEnumValue("visible")
VISIBLE("visible");
private final String value;
InfoSelection(String v) {
value = v;
}
public String value() {
return value;
}
public static InfoSelection fromValue(String v) {
for (InfoSelection c: InfoSelection.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}