org.mitre.cybox.objects.UnixProcessStateEnum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stix Show documentation
Show all versions of stix Show documentation
The Java bindings for STIX v.1.2.0.2
/**
* Copyright (c) 2015, The MITRE Corporation. All rights reserved.
* See LICENSE for complete terms.
*/
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.06.23 at 10:59:44 AM EDT
//
package org.mitre.cybox.objects;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for UnixProcessStateEnum.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="UnixProcessStateEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Running"/>
* <enumeration value="UninterruptibleSleep"/>
* <enumeration value="InterruptibleSleep"/>
* <enumeration value="Stopped"/>
* <enumeration value="Paging"/>
* <enumeration value="Dead"/>
* <enumeration value="Zombie"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "UnixProcessStateEnum", namespace = "http://cybox.mitre.org/objects#UnixProcessObject-2")
@XmlEnum
public enum UnixProcessStateEnum {
/**
* Specifies a running process or runnable [on run queue] (R).
*
*/
@XmlEnumValue("Running")
RUNNING("Running"),
/**
* Specifies a process in uninterruptable sleep [usually IO] (D).
*
*/
@XmlEnumValue("UninterruptibleSleep")
UNINTERRUPTIBLE_SLEEP("UninterruptibleSleep"),
/**
* Specifies a process in interruptable sleep [waiting for an event to complete] (S).
*
*/
@XmlEnumValue("InterruptibleSleep")
INTERRUPTIBLE_SLEEP("InterruptibleSleep"),
/**
* Specifies a stopped process, either by a job control signal or because it is being traced (T).
*
*/
@XmlEnumValue("Stopped")
STOPPED("Stopped"),
/**
* Specifies a paging process [not valid since the 2.6.xx kernel] (W).
*
*/
@XmlEnumValue("Paging")
PAGING("Paging"),
/**
* Specifies a dead process [should never be seen] (X).
*
*/
@XmlEnumValue("Dead")
DEAD("Dead"),
/**
* Specifies a defunct, zombie process [terminated but not reaped by its parent] (Z).
*
*/
@XmlEnumValue("Zombie")
ZOMBIE("Zombie");
private final String value;
UnixProcessStateEnum(String v) {
value = v;
}
public String value() {
return value;
}
public static UnixProcessStateEnum fromValue(String v) {
for (UnixProcessStateEnum c : UnixProcessStateEnum.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}