org.somda.sdc.biceps.model.message.RetrievabilityMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of biceps-model Show documentation
Show all versions of biceps-model Show documentation
SDCri is a set of Java libraries that implements a network communication framework conforming
with the IEEE 11073 SDC specifications. This project implements the model for
IEEE 11073-10207.
The newest version!
package org.somda.sdc.biceps.model.message;
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;
/**
* The method on how it is retrieve the information about a state.
*
* Java class for RetrievabilityMethod
.
*
* The following schema fragment specifies the expected content contained within this class.
* {@code
*
*
*
*
*
*
*
*
* }
*
*/
@XmlType(name = "RetrievabilityMethod", namespace = "http://standards.ieee.org/downloads/11073/11073-10207-2017/message")
@XmlEnum
public enum RetrievabilityMethod {
/**
* The CONTAINMENT TREE ENTRY is retrievable via a get request. Use the corresponding get MESSAGE.
*
*/
@XmlEnumValue("Get")
GET("Get"),
/**
* Per = Periodic. The CONTAINMENT TREE ENTRY is retrievable via a periodic event report. Use the corresponding periodic event report MESSAGE (e.g., pm:PeriodicMetricReport).
*
*/
@XmlEnumValue("Per")
PER("Per"),
/**
* Ep = Episodic. The CONTAINMENT TREE ENTRY is retrievable via an episodic event report. Use the corresponding episodic event report MESSAGE (e.g., pm:EpisodicMetricReport).
*
*/
@XmlEnumValue("Ep")
EP("Ep"),
/**
* Strm = Stream. The CONTAINMENT TREE ENTRY is retrievable via a waveform stream. Use the msg:WaveformStream or msg:ObservedValueStream MESSAGE.
*
*/
@XmlEnumValue("Strm")
STRM("Strm");
private final String value;
RetrievabilityMethod(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 RetrievabilityMethod fromValue(String v) {
for (RetrievabilityMethod c: RetrievabilityMethod.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}