Enum TransactionState
- java.lang.Object
-
- java.lang.Enum<TransactionState>
-
- org.hyperledger.aries.api.endorser.TransactionState
-
- All Implemented Interfaces:
Serializable,Comparable<TransactionState>
public enum TransactionState extends Enum<TransactionState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REQUEST_RECEIVEDREQUEST_SENTTRANSACTION_ACKEDTRANSACTION_CANCELLEDTRANSACTION_CREATEDTRANSACTION_ENDORSEDTRANSACTION_REFUSEDTRANSACTION_RESENTTRANSACTION_RESENT_RECEIEVED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TransactionStatevalueOf(String name)Returns the enum constant of this type with the specified name.static TransactionState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRANSACTION_CREATED
@SerializedName("transaction_created") public static final TransactionState TRANSACTION_CREATED
-
REQUEST_SENT
@SerializedName("request_sent") public static final TransactionState REQUEST_SENT
-
REQUEST_RECEIVED
@SerializedName("request_received") public static final TransactionState REQUEST_RECEIVED
-
TRANSACTION_ENDORSED
@SerializedName("transaction_endorsed") public static final TransactionState TRANSACTION_ENDORSED
-
TRANSACTION_REFUSED
@SerializedName("transaction_refused") public static final TransactionState TRANSACTION_REFUSED
-
TRANSACTION_RESENT
@SerializedName("transaction_resent") public static final TransactionState TRANSACTION_RESENT
-
TRANSACTION_RESENT_RECEIEVED
@SerializedName("transaction_resent_received") public static final TransactionState TRANSACTION_RESENT_RECEIEVED
-
TRANSACTION_CANCELLED
@SerializedName("transaction_cancelled") public static final TransactionState TRANSACTION_CANCELLED
-
TRANSACTION_ACKED
@SerializedName("transaction_acked") public static final TransactionState TRANSACTION_ACKED
-
-
Method Detail
-
values
public static TransactionState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TransactionState c : TransactionState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransactionState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-