Package org.stellar.sdk.xdr
Class Operation.OperationBody
java.lang.Object
org.stellar.sdk.xdr.Operation.OperationBody
- Enclosing class:
Operation
OperationBody's original definition in the XDR file is:
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;
}
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOperationBody(OperationType discriminant, CreateAccountOp createAccountOp, PaymentOp paymentOp, PathPaymentStrictReceiveOp pathPaymentStrictReceiveOp, ManageSellOfferOp manageSellOfferOp, CreatePassiveSellOfferOp createPassiveSellOfferOp, SetOptionsOp setOptionsOp, ChangeTrustOp changeTrustOp, AllowTrustOp allowTrustOp, MuxedAccount destination, ManageDataOp manageDataOp, BumpSequenceOp bumpSequenceOp, ManageBuyOfferOp manageBuyOfferOp, PathPaymentStrictSendOp pathPaymentStrictSendOp, CreateClaimableBalanceOp createClaimableBalanceOp, ClaimClaimableBalanceOp claimClaimableBalanceOp, BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp, RevokeSponsorshipOp revokeSponsorshipOp, ClawbackOp clawbackOp, ClawbackClaimableBalanceOp clawbackClaimableBalanceOp, SetTrustLineFlagsOp setTrustLineFlagsOp, LiquidityPoolDepositOp liquidityPoolDepositOp, LiquidityPoolWithdrawOp liquidityPoolWithdrawOp, InvokeHostFunctionOp invokeHostFunctionOp, ExtendFootprintTTLOp extendFootprintTTLOp, RestoreFootprintOp restoreFootprintOp) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static Operation.OperationBodydecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic Operation.OperationBodyfromXdrBase64(String xdr) static Operation.OperationBodyfromXdrByteArray(byte[] xdr) inthashCode()voidsetAllowTrustOp(AllowTrustOp allowTrustOp) voidsetBeginSponsoringFutureReservesOp(BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp) voidsetBumpSequenceOp(BumpSequenceOp bumpSequenceOp) voidsetChangeTrustOp(ChangeTrustOp changeTrustOp) voidsetClaimClaimableBalanceOp(ClaimClaimableBalanceOp claimClaimableBalanceOp) voidsetClawbackClaimableBalanceOp(ClawbackClaimableBalanceOp clawbackClaimableBalanceOp) voidsetClawbackOp(ClawbackOp clawbackOp) voidsetCreateAccountOp(CreateAccountOp createAccountOp) voidsetCreateClaimableBalanceOp(CreateClaimableBalanceOp createClaimableBalanceOp) voidsetCreatePassiveSellOfferOp(CreatePassiveSellOfferOp createPassiveSellOfferOp) voidsetDestination(MuxedAccount destination) voidsetDiscriminant(OperationType discriminant) voidsetExtendFootprintTTLOp(ExtendFootprintTTLOp extendFootprintTTLOp) voidsetInvokeHostFunctionOp(InvokeHostFunctionOp invokeHostFunctionOp) voidsetLiquidityPoolDepositOp(LiquidityPoolDepositOp liquidityPoolDepositOp) voidsetLiquidityPoolWithdrawOp(LiquidityPoolWithdrawOp liquidityPoolWithdrawOp) voidsetManageBuyOfferOp(ManageBuyOfferOp manageBuyOfferOp) voidsetManageDataOp(ManageDataOp manageDataOp) voidsetManageSellOfferOp(ManageSellOfferOp manageSellOfferOp) voidsetPathPaymentStrictReceiveOp(PathPaymentStrictReceiveOp pathPaymentStrictReceiveOp) voidsetPathPaymentStrictSendOp(PathPaymentStrictSendOp pathPaymentStrictSendOp) voidsetPaymentOp(PaymentOp paymentOp) voidsetRestoreFootprintOp(RestoreFootprintOp restoreFootprintOp) voidsetRevokeSponsorshipOp(RevokeSponsorshipOp revokeSponsorshipOp) voidsetSetOptionsOp(SetOptionsOp setOptionsOp) voidsetSetTrustLineFlagsOp(SetTrustLineFlagsOp setTrustLineFlagsOp) toString()default Stringdefault byte[]
-
Constructor Details
-
OperationBody
public OperationBody() -
OperationBody
public OperationBody(OperationType discriminant, CreateAccountOp createAccountOp, PaymentOp paymentOp, PathPaymentStrictReceiveOp pathPaymentStrictReceiveOp, ManageSellOfferOp manageSellOfferOp, CreatePassiveSellOfferOp createPassiveSellOfferOp, SetOptionsOp setOptionsOp, ChangeTrustOp changeTrustOp, AllowTrustOp allowTrustOp, MuxedAccount destination, ManageDataOp manageDataOp, BumpSequenceOp bumpSequenceOp, ManageBuyOfferOp manageBuyOfferOp, PathPaymentStrictSendOp pathPaymentStrictSendOp, CreateClaimableBalanceOp createClaimableBalanceOp, ClaimClaimableBalanceOp claimClaimableBalanceOp, BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp, RevokeSponsorshipOp revokeSponsorshipOp, ClawbackOp clawbackOp, ClawbackClaimableBalanceOp clawbackClaimableBalanceOp, SetTrustLineFlagsOp setTrustLineFlagsOp, LiquidityPoolDepositOp liquidityPoolDepositOp, LiquidityPoolWithdrawOp liquidityPoolWithdrawOp, InvokeHostFunctionOp invokeHostFunctionOp, ExtendFootprintTTLOp extendFootprintTTLOp, RestoreFootprintOp restoreFootprintOp)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getCreateAccountOp
-
getPaymentOp
-
getPathPaymentStrictReceiveOp
-
getManageSellOfferOp
-
getCreatePassiveSellOfferOp
-
getSetOptionsOp
-
getChangeTrustOp
-
getAllowTrustOp
-
getDestination
-
getManageDataOp
-
getBumpSequenceOp
-
getManageBuyOfferOp
-
getPathPaymentStrictSendOp
-
getCreateClaimableBalanceOp
-
getClaimClaimableBalanceOp
-
getBeginSponsoringFutureReservesOp
-
getRevokeSponsorshipOp
-
getClawbackOp
-
getClawbackClaimableBalanceOp
-
getSetTrustLineFlagsOp
-
getLiquidityPoolDepositOp
-
getLiquidityPoolWithdrawOp
-
getInvokeHostFunctionOp
-
getExtendFootprintTTLOp
-
getRestoreFootprintOp
-
setDiscriminant
-
setCreateAccountOp
-
setPaymentOp
-
setPathPaymentStrictReceiveOp
-
setManageSellOfferOp
-
setCreatePassiveSellOfferOp
-
setSetOptionsOp
-
setChangeTrustOp
-
setAllowTrustOp
-
setDestination
-
setManageDataOp
-
setBumpSequenceOp
-
setManageBuyOfferOp
-
setPathPaymentStrictSendOp
-
setCreateClaimableBalanceOp
-
setClaimClaimableBalanceOp
-
setBeginSponsoringFutureReservesOp
public void setBeginSponsoringFutureReservesOp(BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp) -
setRevokeSponsorshipOp
-
setClawbackOp
-
setClawbackClaimableBalanceOp
-
setSetTrustLineFlagsOp
-
setLiquidityPoolDepositOp
-
setLiquidityPoolWithdrawOp
-
setInvokeHostFunctionOp
-
setExtendFootprintTTLOp
-
setRestoreFootprintOp
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-