Enum Class EnvelopeType

java.lang.Object
java.lang.Enum<EnvelopeType>
org.stellar.sdk.xdr.EnvelopeType
All Implemented Interfaces:
Serializable, Comparable<EnvelopeType>, Constable, XdrElement

public enum EnvelopeType extends Enum<EnvelopeType> implements XdrElement
EnvelopeType's original definition in the XDR file is:
 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,
     ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS = 10
 };
 
  • Enum Constant Details

    • ENVELOPE_TYPE_TX_V0

      public static final EnvelopeType ENVELOPE_TYPE_TX_V0
    • ENVELOPE_TYPE_SCP

      public static final EnvelopeType ENVELOPE_TYPE_SCP
    • ENVELOPE_TYPE_TX

      public static final EnvelopeType ENVELOPE_TYPE_TX
    • ENVELOPE_TYPE_AUTH

      public static final EnvelopeType ENVELOPE_TYPE_AUTH
    • ENVELOPE_TYPE_SCPVALUE

      public static final EnvelopeType ENVELOPE_TYPE_SCPVALUE
    • ENVELOPE_TYPE_TX_FEE_BUMP

      public static final EnvelopeType ENVELOPE_TYPE_TX_FEE_BUMP
    • ENVELOPE_TYPE_OP_ID

      public static final EnvelopeType ENVELOPE_TYPE_OP_ID
    • ENVELOPE_TYPE_POOL_REVOKE_OP_ID

      public static final EnvelopeType ENVELOPE_TYPE_POOL_REVOKE_OP_ID
    • ENVELOPE_TYPE_CONTRACT_ID

      public static final EnvelopeType ENVELOPE_TYPE_CONTRACT_ID
    • ENVELOPE_TYPE_SOROBAN_AUTHORIZATION

      public static final EnvelopeType ENVELOPE_TYPE_SOROBAN_AUTHORIZATION
    • ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS

      public static final EnvelopeType ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS
  • Method Details

    • values

      public static EnvelopeType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EnvelopeType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
    • decode

      public static EnvelopeType decode(XdrDataInputStream stream, int maxDepth) throws IOException
      Throws:
      IOException
    • decode

      public static EnvelopeType decode(XdrDataInputStream stream) throws IOException
      Throws:
      IOException
    • encode

      public void encode(XdrDataOutputStream stream) throws IOException
      Description copied from interface: XdrElement
      Encodes this value to XDR and writes it to the provided stream.
      Specified by:
      encode in interface XdrElement
      Parameters:
      stream - the destination XDR output stream
      Throws:
      IOException - if an I/O error occurs while writing the value
    • fromXdrBase64

      public static EnvelopeType fromXdrBase64(String xdr) throws IOException
      Throws:
      IOException
    • fromXdrByteArray

      public static EnvelopeType fromXdrByteArray(byte[] xdr) throws IOException
      Throws:
      IOException
    • toJson

      public String toJson()
      Description copied from interface: XdrElement
      Serializes this value to JSON.
      Specified by:
      toJson in interface XdrElement
      Returns:
      the JSON representation of this value
    • fromJson

      public static EnvelopeType fromJson(String json)