xml.metadatasharing.VolumeUnitsEnum 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 xml.metadatasharing;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for VolumeUnitsEnum.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="VolumeUnitsEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="numberUsersAffected"/>
* <enumeration value="numberMachinesAffected"/>
* <enumeration value="numberSeenInSpam"/>
* <enumeration value="numberSeenInMalwareSamples"/>
* <enumeration value="numberOfWebsitesHosting"/>
* <enumeration value="numberOfWebsitesRedirecting"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "VolumeUnitsEnum")
@XmlEnum
public enum VolumeUnitsEnum {
/**
*
* numberUsersAffected - The count of users (humans) affected by the items referenced by the field data entry.
*
*
*/
@XmlEnumValue("numberUsersAffected")
NUMBER_USERS_AFFECTED("numberUsersAffected"),
/**
*
* numberMachinesAffected - The count of computers affected by the items referenced by the field data entry.
*
*
*/
@XmlEnumValue("numberMachinesAffected")
NUMBER_MACHINES_AFFECTED("numberMachinesAffected"),
/**
*
* numberSeenInSpam - The count of spam messages containing the items referenced by the field data entry. Most commonly used for uris.
*
*
*/
@XmlEnumValue("numberSeenInSpam")
NUMBER_SEEN_IN_SPAM("numberSeenInSpam"),
/**
*
* numberSeenInMalwareSamples - The count of malware samples containing the items referenced by the field data entry. Most commonly used for uris.
*
*
*/
@XmlEnumValue("numberSeenInMalwareSamples")
NUMBER_SEEN_IN_MALWARE_SAMPLES("numberSeenInMalwareSamples"),
/**
*
* numberOfWebsitesHosting - The count of web sites hosting the items referenced by the field data entry. Most commonly used for uris.
*
*
*/
@XmlEnumValue("numberOfWebsitesHosting")
NUMBER_OF_WEBSITES_HOSTING("numberOfWebsitesHosting"),
/**
*
* numberOfWebsitesRedirecting - The count of web sites redirecting the items referenced by the field data entry. Most commonly used for uris.
*
*
*/
@XmlEnumValue("numberOfWebsitesRedirecting")
NUMBER_OF_WEBSITES_REDIRECTING("numberOfWebsitesRedirecting");
private final String value;
VolumeUnitsEnum(String v) {
value = v;
}
public String value() {
return value;
}
public static VolumeUnitsEnum fromValue(String v) {
for (VolumeUnitsEnum c : VolumeUnitsEnum.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}