org.plasma.runtime.PropertyNameStyle Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2020.02.10 at 02:01:29 PM MST
//
package org.plasma.runtime;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for PropertyNameStyle.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="PropertyNameStyle">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="constants"/>
* <enumeration value="enums"/>
* <enumeration value="none"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "PropertyNameStyle")
@XmlEnum
public enum PropertyNameStyle {
/**
* Use static string constants
*
*/
@XmlEnumValue("constants")
CONSTANTS("constants"),
/**
* Use either derived inner-class enumerations or enumerations from an external source
*
*/
@XmlEnumValue("enums")
ENUMS("enums"),
/**
* Use the actual property name literal
*
*/
@XmlEnumValue("none")
NONE("none");
private final String value;
PropertyNameStyle(String v) {
value = v;
}
public String value() {
return value;
}
public static PropertyNameStyle fromValue(String v) {
for (PropertyNameStyle c: PropertyNameStyle.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}