com.sun.xml.ws.tx.at.v10.types.Outcome Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webservices-osgi Show documentation
Show all versions of webservices-osgi Show documentation
Metro Web Services Runtime OSGi Bundle
The newest version!
/*
* Copyright (c) 1997, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.sun.xml.ws.tx.at.v10.types;
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;
/**
* Java class for Outcome.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
{@code
*
*
*
*
*
*
* }
*
*/
@XmlType(name = "Outcome")
@XmlEnum
public enum Outcome {
@XmlEnumValue("Commit")
COMMIT("Commit"),
@XmlEnumValue("Rollback")
ROLLBACK("Rollback");
private final String value;
Outcome(String v) {
value = v;
}
public String value() {
return value;
}
public static Outcome fromValue(String v) {
for (Outcome c: Outcome.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}