Enum Class OperationType

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

public enum OperationType extends Enum<OperationType> implements XdrElement
OperationType's original definition in the XDR file is:
 enum OperationType
 {
     CREATE_ACCOUNT = 0,
     PAYMENT = 1,
     PATH_PAYMENT_STRICT_RECEIVE = 2,
     MANAGE_SELL_OFFER = 3,
     CREATE_PASSIVE_SELL_OFFER = 4,
     SET_OPTIONS = 5,
     CHANGE_TRUST = 6,
     ALLOW_TRUST = 7,
     ACCOUNT_MERGE = 8,
     INFLATION = 9,
     MANAGE_DATA = 10,
     BUMP_SEQUENCE = 11,
     MANAGE_BUY_OFFER = 12,
     PATH_PAYMENT_STRICT_SEND = 13,
     CREATE_CLAIMABLE_BALANCE = 14,
     CLAIM_CLAIMABLE_BALANCE = 15,
     BEGIN_SPONSORING_FUTURE_RESERVES = 16,
     END_SPONSORING_FUTURE_RESERVES = 17,
     REVOKE_SPONSORSHIP = 18,
     CLAWBACK = 19,
     CLAWBACK_CLAIMABLE_BALANCE = 20,
     SET_TRUST_LINE_FLAGS = 21,
     LIQUIDITY_POOL_DEPOSIT = 22,
     LIQUIDITY_POOL_WITHDRAW = 23,
     INVOKE_HOST_FUNCTION = 24,
     EXTEND_FOOTPRINT_TTL = 25,
     RESTORE_FOOTPRINT = 26
 };
 
  • Enum Constant Details

    • CREATE_ACCOUNT

      public static final OperationType CREATE_ACCOUNT
    • PAYMENT

      public static final OperationType PAYMENT
    • PATH_PAYMENT_STRICT_RECEIVE

      public static final OperationType PATH_PAYMENT_STRICT_RECEIVE
    • MANAGE_SELL_OFFER

      public static final OperationType MANAGE_SELL_OFFER
    • CREATE_PASSIVE_SELL_OFFER

      public static final OperationType CREATE_PASSIVE_SELL_OFFER
    • SET_OPTIONS

      public static final OperationType SET_OPTIONS
    • CHANGE_TRUST

      public static final OperationType CHANGE_TRUST
    • ALLOW_TRUST

      public static final OperationType ALLOW_TRUST
    • ACCOUNT_MERGE

      public static final OperationType ACCOUNT_MERGE
    • INFLATION

      public static final OperationType INFLATION
    • MANAGE_DATA

      public static final OperationType MANAGE_DATA
    • BUMP_SEQUENCE

      public static final OperationType BUMP_SEQUENCE
    • MANAGE_BUY_OFFER

      public static final OperationType MANAGE_BUY_OFFER
    • PATH_PAYMENT_STRICT_SEND

      public static final OperationType PATH_PAYMENT_STRICT_SEND
    • CREATE_CLAIMABLE_BALANCE

      public static final OperationType CREATE_CLAIMABLE_BALANCE
    • CLAIM_CLAIMABLE_BALANCE

      public static final OperationType CLAIM_CLAIMABLE_BALANCE
    • BEGIN_SPONSORING_FUTURE_RESERVES

      public static final OperationType BEGIN_SPONSORING_FUTURE_RESERVES
    • END_SPONSORING_FUTURE_RESERVES

      public static final OperationType END_SPONSORING_FUTURE_RESERVES
    • REVOKE_SPONSORSHIP

      public static final OperationType REVOKE_SPONSORSHIP
    • CLAWBACK

      public static final OperationType CLAWBACK
    • CLAWBACK_CLAIMABLE_BALANCE

      public static final OperationType CLAWBACK_CLAIMABLE_BALANCE
    • SET_TRUST_LINE_FLAGS

      public static final OperationType SET_TRUST_LINE_FLAGS
    • LIQUIDITY_POOL_DEPOSIT

      public static final OperationType LIQUIDITY_POOL_DEPOSIT
    • LIQUIDITY_POOL_WITHDRAW

      public static final OperationType LIQUIDITY_POOL_WITHDRAW
    • INVOKE_HOST_FUNCTION

      public static final OperationType INVOKE_HOST_FUNCTION
    • EXTEND_FOOTPRINT_TTL

      public static final OperationType EXTEND_FOOTPRINT_TTL
    • RESTORE_FOOTPRINT

      public static final OperationType RESTORE_FOOTPRINT
  • Method Details

    • values

      public static OperationType[] 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 OperationType 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 OperationType decode(XdrDataInputStream stream, int maxDepth) throws IOException
      Throws:
      IOException
    • decode

      public static OperationType 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 OperationType fromXdrBase64(String xdr) throws IOException
      Throws:
      IOException
    • fromXdrByteArray

      public static OperationType 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 OperationType fromJson(String json)