org.xmlnetwork.Protocol Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2008.06.03 at 04:27:27 PM CEST
//
package org.xmlnetwork;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
/**
* Java class for protocol.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="protocol">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="ospf"/>
* <enumeration value="bgp"/>
* <enumeration value="rip"/>
* <enumeration value="ripng"/>
* <enumeration value="is-is"/>
* <enumeration value="connected"/>
* <enumeration value="static"/>
* <enumeration value="dvmrp"/>
* <enumeration value="aggregate"/>
* <enumeration value="pim_dense"/>
* <enumeration value="pim_sparse"/>
* <enumeration value="other..."/>
* </restriction>
* </simpleType>
*
*
*/
@XmlEnum
public enum Protocol {
@XmlEnumValue("ospf")
OSPF("ospf"),
@XmlEnumValue("bgp")
BGP("bgp"),
@XmlEnumValue("rip")
RIP("rip"),
@XmlEnumValue("ripng")
RIPNG("ripng"),
@XmlEnumValue("is-is")
IS_IS("is-is"),
@XmlEnumValue("connected")
CONNECTED("connected"),
@XmlEnumValue("static")
STATIC("static"),
@XmlEnumValue("dvmrp")
DVMRP("dvmrp"),
@XmlEnumValue("aggregate")
AGGREGATE("aggregate"),
@XmlEnumValue("pim_dense")
PIM_DENSE("pim_dense"),
@XmlEnumValue("pim_sparse")
PIM_SPARSE("pim_sparse"),
@XmlEnumValue("other...")
OTHER("other...");
private final String value;
Protocol(String v) {
value = v;
}
public String value() {
return value;
}
public static Protocol fromValue(String v) {
for (Protocol c: Protocol.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v.toString());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy