org.mitre.cybox.vocabs.ObjectStateEnum10 Maven / Gradle / Ivy
The newest version!
//
// 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: 2015.11.01 at 11:48:17 AM PST
//
package org.mitre.cybox.vocabs;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for ObjectStateEnum-1.0.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="ObjectStateEnum-1.0">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Exists"/>
* <enumeration value="Does Not Exist"/>
* <enumeration value="Open"/>
* <enumeration value="Closed"/>
* <enumeration value="Active"/>
* <enumeration value="Inactive"/>
* <enumeration value="Locked"/>
* <enumeration value="Unlocked"/>
* <enumeration value="Started"/>
* <enumeration value="Stopped"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "ObjectStateEnum-1.0")
@XmlEnum
public enum ObjectStateEnum10 {
/**
* Specifies that the object exists.
*
*/
@XmlEnumValue("Exists")
EXISTS("Exists"),
/**
* Specifies that the object does not exist.
*
*/
@XmlEnumValue("Does Not Exist")
DOES_NOT_EXIST("Does Not Exist"),
/**
* Specifies that the object is open.
*
*/
@XmlEnumValue("Open")
OPEN("Open"),
/**
* Specifies that the object is closed.
*
*/
@XmlEnumValue("Closed")
CLOSED("Closed"),
/**
* Specifies that the object is active.
*
*/
@XmlEnumValue("Active")
ACTIVE("Active"),
/**
* Specifies that the object is inactive.
*
*/
@XmlEnumValue("Inactive")
INACTIVE("Inactive"),
/**
* Specifies that the object is locked.
*
*/
@XmlEnumValue("Locked")
LOCKED("Locked"),
/**
* Specifies that the object is unlocked.
*
*/
@XmlEnumValue("Unlocked")
UNLOCKED("Unlocked"),
/**
* Specifies that the object has started.
*
*/
@XmlEnumValue("Started")
STARTED("Started"),
/**
* Specifies that the object has stopped.
*
*/
@XmlEnumValue("Stopped")
STOPPED("Stopped");
private final String value;
ObjectStateEnum10(String v) {
value = v;
}
public String value() {
return value;
}
public static ObjectStateEnum10 fromValue(String v) {
for (ObjectStateEnum10 c: ObjectStateEnum10 .values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}