org.mitre.maec.default_vocabularies_1.SocketActionNameEnum10 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
The newest version!
/**
* 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.07.01 at 03:19:53 PM EDT
//
package org.mitre.maec.default_vocabularies_1;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for SocketActionNameEnum-1.0.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="SocketActionNameEnum-1.0">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="accept socket connection"/>
* <enumeration value="bind address to socket"/>
* <enumeration value="create socket"/>
* <enumeration value="close socket"/>
* <enumeration value="connect to socket"/>
* <enumeration value="disconnect from socket"/>
* <enumeration value="listen on socket"/>
* <enumeration value="send data on socket"/>
* <enumeration value="receive data on socket"/>
* <enumeration value="send data to address on socket"/>
* <enumeration value="get host by address"/>
* <enumeration value="get host by name"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "SocketActionNameEnum-1.0")
@XmlEnum
public enum SocketActionNameEnum10 {
/**
* The 'accept socket connection' value specifies the defined action of accepting a socket connection.
*
*/
@XmlEnumValue("accept socket connection")
ACCEPT_SOCKET_CONNECTION("accept socket connection"),
/**
* The 'bind address to socket' value specifies the defined action of binding a socket address to a socket.
*
*/
@XmlEnumValue("bind address to socket")
BIND_ADDRESS_TO_SOCKET("bind address to socket"),
/**
* The 'create socket' value specifies the defined action of creating a new socket.
*
*/
@XmlEnumValue("create socket")
CREATE_SOCKET("create socket"),
/**
* The 'close socket' value specifies the defined action of closing an existing socket.
*
*/
@XmlEnumValue("close socket")
CLOSE_SOCKET("close socket"),
/**
* The 'connect to socket' value specifies the defined action of connecting to an existing socket.
*
*/
@XmlEnumValue("connect to socket")
CONNECT_TO_SOCKET("connect to socket"),
/**
* The 'disconnect from socket' value specifies the defined action of disconnecting from an existing socket.
*
*/
@XmlEnumValue("disconnect from socket")
DISCONNECT_FROM_SOCKET("disconnect from socket"),
/**
* The 'listen on socket' value specifies the defined action of listening on an existing socket.
*
*/
@XmlEnumValue("listen on socket")
LISTEN_ON_SOCKET("listen on socket"),
/**
* The 'send data on socket' value specifies the defined action of sending data on an existing, connected socket.
*
*/
@XmlEnumValue("send data on socket")
SEND_DATA_ON_SOCKET("send data on socket"),
/**
* The 'receive data on socket' value specifies the defined action of receiving data on an existing socket.
*
*/
@XmlEnumValue("receive data on socket")
RECEIVE_DATA_ON_SOCKET("receive data on socket"),
/**
* The 'send data to address on socket' value specifies the defined action of sending data to a specified IP address on an existing, unconnected socket.
*
*/
@XmlEnumValue("send data to address on socket")
SEND_DATA_TO_ADDRESS_ON_SOCKET("send data to address on socket"),
/**
* The 'get host by address' value specifies the defined action of getting information on a host from a local or remote host database by its IP address.
*
*/
@XmlEnumValue("get host by address")
GET_HOST_BY_ADDRESS("get host by address"),
/**
* The 'get host by name' value specifies the defined action of getting information on a host from a local or remote host database by its name.
*
*/
@XmlEnumValue("get host by name")
GET_HOST_BY_NAME("get host by name");
private final String value;
SocketActionNameEnum10(String v) {
value = v;
}
public String value() {
return value;
}
public static SocketActionNameEnum10 fromValue(String v) {
for (SocketActionNameEnum10 c : SocketActionNameEnum10.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}