public enum EnvelopeType extends java.lang.Enum<EnvelopeType> implements XdrElement
enum EnvelopeType { ENVELOPE_TYPE_TX_V0 = 0, ENVELOPE_TYPE_SCP = 1, ENVELOPE_TYPE_TX = 2, ENVELOPE_TYPE_AUTH = 3, ENVELOPE_TYPE_SCPVALUE = 4, ENVELOPE_TYPE_TX_FEE_BUMP = 5, ENVELOPE_TYPE_OP_ID = 6, ENVELOPE_TYPE_POOL_REVOKE_OP_ID = 7, ENVELOPE_TYPE_CONTRACT_ID = 8, ENVELOPE_TYPE_SOROBAN_AUTHORIZATION = 9 };
Modifier and Type | Method and Description |
---|---|
static EnvelopeType |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static EnvelopeType |
fromXdrBase64(java.lang.String xdr) |
static EnvelopeType |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static EnvelopeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnvelopeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
toXdrBase64, toXdrByteArray
public static final EnvelopeType ENVELOPE_TYPE_TX_V0
public static final EnvelopeType ENVELOPE_TYPE_SCP
public static final EnvelopeType ENVELOPE_TYPE_TX
public static final EnvelopeType ENVELOPE_TYPE_AUTH
public static final EnvelopeType ENVELOPE_TYPE_SCPVALUE
public static final EnvelopeType ENVELOPE_TYPE_TX_FEE_BUMP
public static final EnvelopeType ENVELOPE_TYPE_OP_ID
public static final EnvelopeType ENVELOPE_TYPE_POOL_REVOKE_OP_ID
public static final EnvelopeType ENVELOPE_TYPE_CONTRACT_ID
public static final EnvelopeType ENVELOPE_TYPE_SOROBAN_AUTHORIZATION
public static EnvelopeType[] values()
for (EnvelopeType c : EnvelopeType.values()) System.out.println(c);
public static EnvelopeType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static EnvelopeType decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static EnvelopeType fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static EnvelopeType fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException