Package org.stellar.sdk.xdr
Class Operation.OperationBody
java.lang.Object
org.stellar.sdk.xdr.Operation.OperationBody
- All Implemented Interfaces:
XdrElement
- 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 -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
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) Creates a newOperationBodyinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static Operation.OperationBodydecode(XdrDataInputStream stream) static Operation.OperationBodydecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic Operation.OperationBodystatic Operation.OperationBodyfromXdrBase64(String xdr) static Operation.OperationBodyfromXdrByteArray(byte[] xdr) Value of theallowTrustOpfield.Value of thebeginSponsoringFutureReservesOpfield.Value of thebumpSequenceOpfield.Value of thechangeTrustOpfield.Value of theclaimClaimableBalanceOpfield.Value of theclawbackClaimableBalanceOpfield.Value of theclawbackOpfield.Value of thecreateAccountOpfield.Value of thecreateClaimableBalanceOpfield.Value of thecreatePassiveSellOfferOpfield.Value of thedestinationfield.Value of thediscriminantfield.Value of theextendFootprintTTLOpfield.Value of theinvokeHostFunctionOpfield.Value of theliquidityPoolDepositOpfield.Value of theliquidityPoolWithdrawOpfield.Value of themanageBuyOfferOpfield.Value of themanageDataOpfield.Value of themanageSellOfferOpfield.Value of thepathPaymentStrictReceiveOpfield.Value of thepathPaymentStrictSendOpfield.Value of thepaymentOpfield.Value of therestoreFootprintOpfield.Value of therevokeSponsorshipOpfield.Value of thesetOptionsOpfield.Value of thesetTrustLineFlagsOpfield.inthashCode()voidsetAllowTrustOp(AllowTrustOp allowTrustOp) Value of theallowTrustOpfield.voidsetBeginSponsoringFutureReservesOp(BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp) Value of thebeginSponsoringFutureReservesOpfield.voidsetBumpSequenceOp(BumpSequenceOp bumpSequenceOp) Value of thebumpSequenceOpfield.voidsetChangeTrustOp(ChangeTrustOp changeTrustOp) Value of thechangeTrustOpfield.voidsetClaimClaimableBalanceOp(ClaimClaimableBalanceOp claimClaimableBalanceOp) Value of theclaimClaimableBalanceOpfield.voidsetClawbackClaimableBalanceOp(ClawbackClaimableBalanceOp clawbackClaimableBalanceOp) Value of theclawbackClaimableBalanceOpfield.voidsetClawbackOp(ClawbackOp clawbackOp) Value of theclawbackOpfield.voidsetCreateAccountOp(CreateAccountOp createAccountOp) Value of thecreateAccountOpfield.voidsetCreateClaimableBalanceOp(CreateClaimableBalanceOp createClaimableBalanceOp) Value of thecreateClaimableBalanceOpfield.voidsetCreatePassiveSellOfferOp(CreatePassiveSellOfferOp createPassiveSellOfferOp) Value of thecreatePassiveSellOfferOpfield.voidsetDestination(MuxedAccount destination) Value of thedestinationfield.voidsetDiscriminant(OperationType discriminant) Value of thediscriminantfield.voidsetExtendFootprintTTLOp(ExtendFootprintTTLOp extendFootprintTTLOp) Value of theextendFootprintTTLOpfield.voidsetInvokeHostFunctionOp(InvokeHostFunctionOp invokeHostFunctionOp) Value of theinvokeHostFunctionOpfield.voidsetLiquidityPoolDepositOp(LiquidityPoolDepositOp liquidityPoolDepositOp) Value of theliquidityPoolDepositOpfield.voidsetLiquidityPoolWithdrawOp(LiquidityPoolWithdrawOp liquidityPoolWithdrawOp) Value of theliquidityPoolWithdrawOpfield.voidsetManageBuyOfferOp(ManageBuyOfferOp manageBuyOfferOp) Value of themanageBuyOfferOpfield.voidsetManageDataOp(ManageDataOp manageDataOp) Value of themanageDataOpfield.voidsetManageSellOfferOp(ManageSellOfferOp manageSellOfferOp) Value of themanageSellOfferOpfield.voidsetPathPaymentStrictReceiveOp(PathPaymentStrictReceiveOp pathPaymentStrictReceiveOp) Value of thepathPaymentStrictReceiveOpfield.voidsetPathPaymentStrictSendOp(PathPaymentStrictSendOp pathPaymentStrictSendOp) Value of thepathPaymentStrictSendOpfield.voidsetPaymentOp(PaymentOp paymentOp) Value of thepaymentOpfield.voidsetRestoreFootprintOp(RestoreFootprintOp restoreFootprintOp) Value of therestoreFootprintOpfield.voidsetRevokeSponsorshipOp(RevokeSponsorshipOp revokeSponsorshipOp) Value of therevokeSponsorshipOpfield.voidsetSetOptionsOp(SetOptionsOp setOptionsOp) Value of thesetOptionsOpfield.voidsetSetTrustLineFlagsOp(SetTrustLineFlagsOp setTrustLineFlagsOp) Value of thesetTrustLineFlagsOpfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
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) Creates a newOperationBodyinstance.- Parameters:
discriminant- thediscriminantfield valuecreateAccountOp- thecreateAccountOpfield valuepaymentOp- thepaymentOpfield valuepathPaymentStrictReceiveOp- thepathPaymentStrictReceiveOpfield valuemanageSellOfferOp- themanageSellOfferOpfield valuecreatePassiveSellOfferOp- thecreatePassiveSellOfferOpfield valuesetOptionsOp- thesetOptionsOpfield valuechangeTrustOp- thechangeTrustOpfield valueallowTrustOp- theallowTrustOpfield valuedestination- thedestinationfield valuemanageDataOp- themanageDataOpfield valuebumpSequenceOp- thebumpSequenceOpfield valuemanageBuyOfferOp- themanageBuyOfferOpfield valuepathPaymentStrictSendOp- thepathPaymentStrictSendOpfield valuecreateClaimableBalanceOp- thecreateClaimableBalanceOpfield valueclaimClaimableBalanceOp- theclaimClaimableBalanceOpfield valuebeginSponsoringFutureReservesOp- thebeginSponsoringFutureReservesOpfield valuerevokeSponsorshipOp- therevokeSponsorshipOpfield valueclawbackOp- theclawbackOpfield valueclawbackClaimableBalanceOp- theclawbackClaimableBalanceOpfield valuesetTrustLineFlagsOp- thesetTrustLineFlagsOpfield valueliquidityPoolDepositOp- theliquidityPoolDepositOpfield valueliquidityPoolWithdrawOp- theliquidityPoolWithdrawOpfield valueinvokeHostFunctionOp- theinvokeHostFunctionOpfield valueextendFootprintTTLOp- theextendFootprintTTLOpfield valuerestoreFootprintOp- therestoreFootprintOpfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static Operation.OperationBody decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getDiscriminant
Value of thediscriminantfield.- Returns:
- the
discriminantfield value
-
getCreateAccountOp
Value of thecreateAccountOpfield.- Returns:
- the
createAccountOpfield value
-
getPaymentOp
Value of thepaymentOpfield.- Returns:
- the
paymentOpfield value
-
getPathPaymentStrictReceiveOp
Value of thepathPaymentStrictReceiveOpfield.- Returns:
- the
pathPaymentStrictReceiveOpfield value
-
getManageSellOfferOp
Value of themanageSellOfferOpfield.- Returns:
- the
manageSellOfferOpfield value
-
getCreatePassiveSellOfferOp
Value of thecreatePassiveSellOfferOpfield.- Returns:
- the
createPassiveSellOfferOpfield value
-
getSetOptionsOp
Value of thesetOptionsOpfield.- Returns:
- the
setOptionsOpfield value
-
getChangeTrustOp
Value of thechangeTrustOpfield.- Returns:
- the
changeTrustOpfield value
-
getAllowTrustOp
Value of theallowTrustOpfield.- Returns:
- the
allowTrustOpfield value
-
getDestination
Value of thedestinationfield.- Returns:
- the
destinationfield value
-
getManageDataOp
Value of themanageDataOpfield.- Returns:
- the
manageDataOpfield value
-
getBumpSequenceOp
Value of thebumpSequenceOpfield.- Returns:
- the
bumpSequenceOpfield value
-
getManageBuyOfferOp
Value of themanageBuyOfferOpfield.- Returns:
- the
manageBuyOfferOpfield value
-
getPathPaymentStrictSendOp
Value of thepathPaymentStrictSendOpfield.- Returns:
- the
pathPaymentStrictSendOpfield value
-
getCreateClaimableBalanceOp
Value of thecreateClaimableBalanceOpfield.- Returns:
- the
createClaimableBalanceOpfield value
-
getClaimClaimableBalanceOp
Value of theclaimClaimableBalanceOpfield.- Returns:
- the
claimClaimableBalanceOpfield value
-
getBeginSponsoringFutureReservesOp
Value of thebeginSponsoringFutureReservesOpfield.- Returns:
- the
beginSponsoringFutureReservesOpfield value
-
getRevokeSponsorshipOp
Value of therevokeSponsorshipOpfield.- Returns:
- the
revokeSponsorshipOpfield value
-
getClawbackOp
Value of theclawbackOpfield.- Returns:
- the
clawbackOpfield value
-
getClawbackClaimableBalanceOp
Value of theclawbackClaimableBalanceOpfield.- Returns:
- the
clawbackClaimableBalanceOpfield value
-
getSetTrustLineFlagsOp
Value of thesetTrustLineFlagsOpfield.- Returns:
- the
setTrustLineFlagsOpfield value
-
getLiquidityPoolDepositOp
Value of theliquidityPoolDepositOpfield.- Returns:
- the
liquidityPoolDepositOpfield value
-
getLiquidityPoolWithdrawOp
Value of theliquidityPoolWithdrawOpfield.- Returns:
- the
liquidityPoolWithdrawOpfield value
-
getInvokeHostFunctionOp
Value of theinvokeHostFunctionOpfield.- Returns:
- the
invokeHostFunctionOpfield value
-
getExtendFootprintTTLOp
Value of theextendFootprintTTLOpfield.- Returns:
- the
extendFootprintTTLOpfield value
-
getRestoreFootprintOp
Value of therestoreFootprintOpfield.- Returns:
- the
restoreFootprintOpfield value
-
setDiscriminant
Value of thediscriminantfield.- Parameters:
discriminant- thediscriminantfield value
-
setCreateAccountOp
Value of thecreateAccountOpfield.- Parameters:
createAccountOp- thecreateAccountOpfield value
-
setPaymentOp
Value of thepaymentOpfield.- Parameters:
paymentOp- thepaymentOpfield value
-
setPathPaymentStrictReceiveOp
Value of thepathPaymentStrictReceiveOpfield.- Parameters:
pathPaymentStrictReceiveOp- thepathPaymentStrictReceiveOpfield value
-
setManageSellOfferOp
Value of themanageSellOfferOpfield.- Parameters:
manageSellOfferOp- themanageSellOfferOpfield value
-
setCreatePassiveSellOfferOp
Value of thecreatePassiveSellOfferOpfield.- Parameters:
createPassiveSellOfferOp- thecreatePassiveSellOfferOpfield value
-
setSetOptionsOp
Value of thesetOptionsOpfield.- Parameters:
setOptionsOp- thesetOptionsOpfield value
-
setChangeTrustOp
Value of thechangeTrustOpfield.- Parameters:
changeTrustOp- thechangeTrustOpfield value
-
setAllowTrustOp
Value of theallowTrustOpfield.- Parameters:
allowTrustOp- theallowTrustOpfield value
-
setDestination
Value of thedestinationfield.- Parameters:
destination- thedestinationfield value
-
setManageDataOp
Value of themanageDataOpfield.- Parameters:
manageDataOp- themanageDataOpfield value
-
setBumpSequenceOp
Value of thebumpSequenceOpfield.- Parameters:
bumpSequenceOp- thebumpSequenceOpfield value
-
setManageBuyOfferOp
Value of themanageBuyOfferOpfield.- Parameters:
manageBuyOfferOp- themanageBuyOfferOpfield value
-
setPathPaymentStrictSendOp
Value of thepathPaymentStrictSendOpfield.- Parameters:
pathPaymentStrictSendOp- thepathPaymentStrictSendOpfield value
-
setCreateClaimableBalanceOp
Value of thecreateClaimableBalanceOpfield.- Parameters:
createClaimableBalanceOp- thecreateClaimableBalanceOpfield value
-
setClaimClaimableBalanceOp
Value of theclaimClaimableBalanceOpfield.- Parameters:
claimClaimableBalanceOp- theclaimClaimableBalanceOpfield value
-
setBeginSponsoringFutureReservesOp
public void setBeginSponsoringFutureReservesOp(BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp) Value of thebeginSponsoringFutureReservesOpfield.- Parameters:
beginSponsoringFutureReservesOp- thebeginSponsoringFutureReservesOpfield value
-
setRevokeSponsorshipOp
Value of therevokeSponsorshipOpfield.- Parameters:
revokeSponsorshipOp- therevokeSponsorshipOpfield value
-
setClawbackOp
Value of theclawbackOpfield.- Parameters:
clawbackOp- theclawbackOpfield value
-
setClawbackClaimableBalanceOp
Value of theclawbackClaimableBalanceOpfield.- Parameters:
clawbackClaimableBalanceOp- theclawbackClaimableBalanceOpfield value
-
setSetTrustLineFlagsOp
Value of thesetTrustLineFlagsOpfield.- Parameters:
setTrustLineFlagsOp- thesetTrustLineFlagsOpfield value
-
setLiquidityPoolDepositOp
Value of theliquidityPoolDepositOpfield.- Parameters:
liquidityPoolDepositOp- theliquidityPoolDepositOpfield value
-
setLiquidityPoolWithdrawOp
Value of theliquidityPoolWithdrawOpfield.- Parameters:
liquidityPoolWithdrawOp- theliquidityPoolWithdrawOpfield value
-
setInvokeHostFunctionOp
Value of theinvokeHostFunctionOpfield.- Parameters:
invokeHostFunctionOp- theinvokeHostFunctionOpfield value
-
setExtendFootprintTTLOp
Value of theextendFootprintTTLOpfield.- Parameters:
extendFootprintTTLOp- theextendFootprintTTLOpfield value
-
setRestoreFootprintOp
Value of therestoreFootprintOpfield.- Parameters:
restoreFootprintOp- therestoreFootprintOpfield value
-
equals
-
hashCode
public int hashCode() -
toString
-