public static class Operation.OperationBody extends java.lang.Object implements XdrElement
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; }
Modifier and Type | Class and Description |
---|---|
static class |
Operation.OperationBody.OperationBodyBuilder |
Constructor and Description |
---|
OperationBody() |
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) |
toXdrBase64, toXdrByteArray
public 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)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static Operation.OperationBody decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static Operation.OperationBody fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static Operation.OperationBody fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static Operation.OperationBody.OperationBodyBuilder builder()
public Operation.OperationBody.OperationBodyBuilder toBuilder()
public OperationType getDiscriminant()
public CreateAccountOp getCreateAccountOp()
public PaymentOp getPaymentOp()
public PathPaymentStrictReceiveOp getPathPaymentStrictReceiveOp()
public ManageSellOfferOp getManageSellOfferOp()
public CreatePassiveSellOfferOp getCreatePassiveSellOfferOp()
public SetOptionsOp getSetOptionsOp()
public ChangeTrustOp getChangeTrustOp()
public AllowTrustOp getAllowTrustOp()
public MuxedAccount getDestination()
public ManageDataOp getManageDataOp()
public BumpSequenceOp getBumpSequenceOp()
public ManageBuyOfferOp getManageBuyOfferOp()
public PathPaymentStrictSendOp getPathPaymentStrictSendOp()
public CreateClaimableBalanceOp getCreateClaimableBalanceOp()
public ClaimClaimableBalanceOp getClaimClaimableBalanceOp()
public BeginSponsoringFutureReservesOp getBeginSponsoringFutureReservesOp()
public RevokeSponsorshipOp getRevokeSponsorshipOp()
public ClawbackOp getClawbackOp()
public ClawbackClaimableBalanceOp getClawbackClaimableBalanceOp()
public SetTrustLineFlagsOp getSetTrustLineFlagsOp()
public LiquidityPoolDepositOp getLiquidityPoolDepositOp()
public LiquidityPoolWithdrawOp getLiquidityPoolWithdrawOp()
public InvokeHostFunctionOp getInvokeHostFunctionOp()
public ExtendFootprintTTLOp getExtendFootprintTTLOp()
public RestoreFootprintOp getRestoreFootprintOp()
public void setDiscriminant(OperationType discriminant)
public void setCreateAccountOp(CreateAccountOp createAccountOp)
public void setPaymentOp(PaymentOp paymentOp)
public void setPathPaymentStrictReceiveOp(PathPaymentStrictReceiveOp pathPaymentStrictReceiveOp)
public void setManageSellOfferOp(ManageSellOfferOp manageSellOfferOp)
public void setCreatePassiveSellOfferOp(CreatePassiveSellOfferOp createPassiveSellOfferOp)
public void setSetOptionsOp(SetOptionsOp setOptionsOp)
public void setChangeTrustOp(ChangeTrustOp changeTrustOp)
public void setAllowTrustOp(AllowTrustOp allowTrustOp)
public void setDestination(MuxedAccount destination)
public void setManageDataOp(ManageDataOp manageDataOp)
public void setBumpSequenceOp(BumpSequenceOp bumpSequenceOp)
public void setManageBuyOfferOp(ManageBuyOfferOp manageBuyOfferOp)
public void setPathPaymentStrictSendOp(PathPaymentStrictSendOp pathPaymentStrictSendOp)
public void setCreateClaimableBalanceOp(CreateClaimableBalanceOp createClaimableBalanceOp)
public void setClaimClaimableBalanceOp(ClaimClaimableBalanceOp claimClaimableBalanceOp)
public void setBeginSponsoringFutureReservesOp(BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp)
public void setRevokeSponsorshipOp(RevokeSponsorshipOp revokeSponsorshipOp)
public void setClawbackOp(ClawbackOp clawbackOp)
public void setClawbackClaimableBalanceOp(ClawbackClaimableBalanceOp clawbackClaimableBalanceOp)
public void setSetTrustLineFlagsOp(SetTrustLineFlagsOp setTrustLineFlagsOp)
public void setLiquidityPoolDepositOp(LiquidityPoolDepositOp liquidityPoolDepositOp)
public void setLiquidityPoolWithdrawOp(LiquidityPoolWithdrawOp liquidityPoolWithdrawOp)
public void setInvokeHostFunctionOp(InvokeHostFunctionOp invokeHostFunctionOp)
public void setExtendFootprintTTLOp(ExtendFootprintTTLOp extendFootprintTTLOp)
public void setRestoreFootprintOp(RestoreFootprintOp restoreFootprintOp)
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