org.javastro.ivoa.entities.resource.registry.OptionalProtocol Maven / Gradle / Ivy
package org.javastro.ivoa.entities.resource.registry;
import jakarta.annotation.Generated;
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;
import org.jvnet.jaxb.lang.EnumValue;
/**
*
*
* Java class for OptionalProtocol
.
*
* The following schema fragment specifies the expected content contained within this class.
* {@code
*
*
*
*
*
* }
*
*/
@XmlType(name = "OptionalProtocol")
@XmlEnum
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public enum OptionalProtocol implements EnumValue
{
/**
* the XQuery (http://www.w3.org/TR/xquery/) protocol as defined
* in the VO Registry Interface standard.
*
*/
@XmlEnumValue("XQuery")
X_QUERY("XQuery");
private final String value;
OptionalProtocol(String v) {
value = v;
}
/**
* Gets the value associated to the enum constant.
*
* @return
* The value linked to the enum.
*/
public String value() {
return value;
}
/**
* Gets the enum associated to the value passed as parameter.
*
* @param v
* The value to get the enum from.
* @return
* The enum which corresponds to the value, if it exists.
* @throws IllegalArgumentException
* If no value matches in the enum declaration.
*/
public static OptionalProtocol fromValue(String v) {
for (OptionalProtocol c: OptionalProtocol.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
@Override
public String enumValue() {
return this.value();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy