public class Operation extends java.lang.Object implements XdrElement
struct Operation { // sourceAccount is the account used to run the operation // if not set, the runtime defaults to "sourceAccount" specified at // the transaction level MuxedAccount* sourceAccount; union switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountOp createAccountOp; case PAYMENT: PaymentOp paymentOp; case PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveOp pathPaymentStrictReceiveOp; case MANAGE_SELL_OFFER: ManageSellOfferOp manageSellOfferOp; case CREATE_PASSIVE_SELL_OFFER: CreatePassiveSellOfferOp createPassiveSellOfferOp; case SET_OPTIONS: SetOptionsOp setOptionsOp; case CHANGE_TRUST: ChangeTrustOp changeTrustOp; case ALLOW_TRUST: AllowTrustOp allowTrustOp; case ACCOUNT_MERGE: MuxedAccount destination; case INFLATION: void; case MANAGE_DATA: ManageDataOp manageDataOp; case BUMP_SEQUENCE: BumpSequenceOp bumpSequenceOp; case MANAGE_BUY_OFFER: ManageBuyOfferOp manageBuyOfferOp; case PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendOp pathPaymentStrictSendOp; case CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceOp createClaimableBalanceOp; case CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceOp claimClaimableBalanceOp; case BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp; case END_SPONSORING_FUTURE_RESERVES: void; case REVOKE_SPONSORSHIP: RevokeSponsorshipOp revokeSponsorshipOp; case CLAWBACK: ClawbackOp clawbackOp; case CLAWBACK_CLAIMABLE_BALANCE: ClawbackClaimableBalanceOp clawbackClaimableBalanceOp; case SET_TRUST_LINE_FLAGS: SetTrustLineFlagsOp setTrustLineFlagsOp; case LIQUIDITY_POOL_DEPOSIT: LiquidityPoolDepositOp liquidityPoolDepositOp; case LIQUIDITY_POOL_WITHDRAW: LiquidityPoolWithdrawOp liquidityPoolWithdrawOp; case INVOKE_HOST_FUNCTION: InvokeHostFunctionOp invokeHostFunctionOp; case EXTEND_FOOTPRINT_TTL: ExtendFootprintTTLOp extendFootprintTTLOp; case RESTORE_FOOTPRINT: RestoreFootprintOp restoreFootprintOp; } body; };
Modifier and Type | Class and Description |
---|---|
static class |
Operation.OperationBody
OperationBody's original definition in the XDR file is:
|
static class |
Operation.OperationBuilder |
Constructor and Description |
---|
Operation() |
Operation(MuxedAccount sourceAccount,
Operation.OperationBody body) |
Modifier and Type | Method and Description |
---|---|
static Operation.OperationBuilder |
builder() |
static Operation |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static Operation |
fromXdrBase64(java.lang.String xdr) |
static Operation |
fromXdrByteArray(byte[] xdr) |
Operation.OperationBody |
getBody() |
MuxedAccount |
getSourceAccount() |
int |
hashCode() |
void |
setBody(Operation.OperationBody body) |
void |
setSourceAccount(MuxedAccount sourceAccount) |
Operation.OperationBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public Operation()
public Operation(MuxedAccount sourceAccount, Operation.OperationBody body)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static Operation decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static Operation fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static Operation fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static Operation.OperationBuilder builder()
public Operation.OperationBuilder toBuilder()
public MuxedAccount getSourceAccount()
public Operation.OperationBody getBody()
public void setSourceAccount(MuxedAccount sourceAccount)
public void setBody(Operation.OperationBody body)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object