/*
Copyright (C) DocuSign, Inc. All rights reserved.
This source code is intended only as a supplement to DocuSign SDK and/or on-line documentation.
This sample is designed to demonstrate DocuSign features and is not intended for production use.
Code and policy for a production application must be developed to meet the specific data and
security requirements of the application.
THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR
FITNESS FOR A PARTICULAR PURPOSE.
*/
package net.docusign.ws3_0.api;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for EventStatusCode.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="EventStatusCode">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Passed"/>
* <enumeration value="Failed"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "EventStatusCode")
@XmlEnum
public enum EventStatusCode {
@XmlEnumValue("Passed")
PASSED("Passed"),
@XmlEnumValue("Failed")
FAILED("Failed");
private final String value;
EventStatusCode(String v) {
value = v;
}
public String value() {
return value;
}
public static EventStatusCode fromValue(String v) {
for (EventStatusCode c: EventStatusCode.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}