org.mitre.cybox.vocabs.HashNameEnum10 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 HashNameEnum-1.0.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="HashNameEnum-1.0">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="MD5"/>
* <enumeration value="MD6"/>
* <enumeration value="SHA1"/>
* <enumeration value="SHA224"/>
* <enumeration value="SHA256"/>
* <enumeration value="SHA384"/>
* <enumeration value="SHA512"/>
* <enumeration value="SSDEEP"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "HashNameEnum-1.0")
@XmlEnum
public enum HashNameEnum10 {
/**
* The MD5 value specifies the MD5 hashing algorithm.
*
*/
@XmlEnumValue("MD5")
MD_5("MD5"),
/**
* The MD6 value specifies the MD6 hashing algorithm.
*
*/
@XmlEnumValue("MD6")
MD_6("MD6"),
/**
* The SHA1 value specifies the SHA1 hashing algorithm.
*
*/
@XmlEnumValue("SHA1")
SHA_1("SHA1"),
/**
* The SHA24 value specifies the SHA224 hashing algorithm.
*
*/
@XmlEnumValue("SHA224")
SHA_224("SHA224"),
/**
* The SHA256 value specifies the SHA256 hashing algorithm.
*
*/
@XmlEnumValue("SHA256")
SHA_256("SHA256"),
/**
* The SHA384 value specifies the SHA384 hashing algorithm.
*
*/
@XmlEnumValue("SHA384")
SHA_384("SHA384"),
/**
* The SHA512 value specifies the SHA512 hashing algorithm.
*
*/
@XmlEnumValue("SHA512")
SHA_512("SHA512"),
/**
* The SSDEEP value specifies the SSDEEP hashing algorithm.
*
*/
SSDEEP("SSDEEP");
private final String value;
HashNameEnum10(String v) {
value = v;
}
public String value() {
return value;
}
public static HashNameEnum10 fromValue(String v) {
for (HashNameEnum10 c: HashNameEnum10 .values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}