org.mitre.cybox.objects.win.ThreadRunningStatusEnum 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.objects.win;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for ThreadRunningStatusEnum.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="ThreadRunningStatusEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Initialized"/>
* <enumeration value="Ready"/>
* <enumeration value="Running"/>
* <enumeration value="Standby"/>
* <enumeration value="Terminated"/>
* <enumeration value="Waiting"/>
* <enumeration value="Transition"/>
* <enumeration value="Unknown"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "ThreadRunningStatusEnum", namespace = "http://cybox.mitre.org/objects#WinThreadObject-2")
@XmlEnum
public enum ThreadRunningStatusEnum {
/**
* A state that indicates the thread has been initialized, but has not yet started.
*
*/
@XmlEnumValue("Initialized")
INITIALIZED("Initialized"),
/**
* A state that indicates the thread is waiting to use a processor because no processor is free. The thread is prepared to run on the next available processor.
*
*/
@XmlEnumValue("Ready")
READY("Ready"),
/**
* A state that indicates the thread is currently using a processor.
*
*/
@XmlEnumValue("Running")
RUNNING("Running"),
/**
* A state that indicates the thread is about to use a processor. Only one thread can be in this state at a time.
*
*/
@XmlEnumValue("Standby")
STANDBY("Standby"),
/**
* A state that indicates the thread has finished executing and has exited.
*
*/
@XmlEnumValue("Terminated")
TERMINATED("Terminated"),
/**
* A state that indicates the thread is not ready to use the processor because it is waiting for a peripheral operation to complete or a resource to become free. When the thread is ready, it will be rescheduled.
*
*/
@XmlEnumValue("Waiting")
WAITING("Waiting"),
/**
* A state that indicates the thread is waiting for a resource, other than the processor, before it can execute.
*
*/
@XmlEnumValue("Transition")
TRANSITION("Transition"),
/**
* The thread of the thread is unknown.
*
*/
@XmlEnumValue("Unknown")
UNKNOWN("Unknown");
private final String value;
ThreadRunningStatusEnum(String v) {
value = v;
}
public String value() {
return value;
}
public static ThreadRunningStatusEnum fromValue(String v) {
for (ThreadRunningStatusEnum c: ThreadRunningStatusEnum.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}