com.sun.xml.ws.tx.at.v10.types.Vote 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
/*
* Copyright (c) 1997, 2021 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 Vote.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
{@code
*
*
*
*
*
*
*
* }
*
*/
@XmlType(name = "Vote")
@XmlEnum
public enum Vote {
@XmlEnumValue("VoteCommit")
VOTE_COMMIT("VoteCommit"),
@XmlEnumValue("VoteRollback")
VOTE_ROLLBACK("VoteRollback"),
@XmlEnumValue("VoteReadOnly")
VOTE_READ_ONLY("VoteReadOnly");
private final String value;
Vote(String v) {
value = v;
}
public String value() {
return value;
}
public static Vote fromValue(String v) {
for (Vote c: Vote.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}