com.eprosima.xmlschemas.fastrtps_profiles.BuiltinTransportKind Maven / Gradle / Ivy
package com.eprosima.xmlschemas.fastrtps_profiles;
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;
/**
*
*
* Java class for builtinTransportKind
.
*
* The following schema fragment specifies the expected content contained within this class.
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*/
@XmlType(name = "builtinTransportKind")
@XmlEnum
public enum BuiltinTransportKind {
NONE("NONE"),
DEFAULT("DEFAULT"),
@XmlEnumValue("DEFAULTv6")
DEFAUL_TV_6("DEFAULTv6"),
SHM("SHM"),
@XmlEnumValue("UDPv4")
UD_PV_4("UDPv4"),
@XmlEnumValue("UDPv6")
UD_PV_6("UDPv6"),
LARGE_DATA("LARGE_DATA"),
@XmlEnumValue("LARGE_DATAv6")
LARGE_DAT_AV_6("LARGE_DATAv6");
private final String value;
BuiltinTransportKind(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 BuiltinTransportKind fromValue(String v) {
for (BuiltinTransportKind c: BuiltinTransportKind.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy