
io.fixprotocol._2016.fixrepository.PresenceT Maven / Gradle / Ivy
The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.09.19 at 12:33:07 PM CDT
//
package io.fixprotocol._2016.fixrepository;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for presence_t.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="presence_t">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="optional"/>
* <enumeration value="required"/>
* <enumeration value="forbidden"/>
* <enumeration value="ignored"/>
* <enumeration value="constant"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "presence_t")
@XmlEnum
public enum PresenceT {
/**
* The field or component MAY be present; it may be conditionally required based on a rule.
*
*/
@XmlEnumValue("optional")
OPTIONAL("optional"),
/**
* The field or component MUST be present.
*
*/
@XmlEnumValue("required")
REQUIRED("required"),
/**
* The field or component MUST NOT be present.
*
*/
@XmlEnumValue("forbidden")
FORBIDDEN("forbidden"),
/**
* The field or component MAY be present but is not validated.
*
*/
@XmlEnumValue("ignored")
IGNORED("ignored"),
/**
* The field has a constant value; in some encodings it need not be sent on the wire.
*
*/
@XmlEnumValue("constant")
CONSTANT("constant");
private final String value;
PresenceT(String v) {
value = v;
}
public String value() {
return value;
}
public static PresenceT fromValue(String v) {
for (PresenceT c: PresenceT.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy