Package org.xrpl.xrpl4j.model.flags
Class TrustSetFlags
java.lang.Object
org.xrpl.xrpl4j.model.flags.Flags
org.xrpl.xrpl4j.model.flags.TransactionFlags
org.xrpl.xrpl4j.model.flags.TrustSetFlags
A set of static
TransactionFlags which can be set on TrustSet transactions.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final TrustSetFlagsConstantTrustSetFlagsfor thetfClearDeepFreezeflag.protected static final TrustSetFlagsConstantTrustSetFlagsfor thetfClearFreezeflag.protected static final TrustSetFlagsConstantTrustSetFlagsfor thetfClearNoRippleflag.static final TrustSetFlagsConstantTrustSetFlagsfor thetfInnerBatchTxnflag.protected static final TrustSetFlagsConstantTrustSetFlagsfor thetfSetDeepFreezeflag.protected static final TrustSetFlagsConstantTrustSetFlagsfor thetfSetfAuthflag.protected static final TrustSetFlagsConstantTrustSetFlagsfor thetfSetFreezeflag.protected static final TrustSetFlagsConstantTrustSetFlagsfor thetfSetNoRippleflag.protected static final TrustSetFlagsConstant for an unset flag.Fields inherited from class org.xrpl.xrpl4j.model.flags.TransactionFlags
EMPTY, FULLY_CANONICAL_SIG -
Method Summary
Modifier and TypeMethodDescriptionstatic TrustSetFlags.Builderbuilder()Create a newTrustSetFlags.Builder.static TrustSetFlagsempty()Construct an empty instance ofTrustSetFlags.static TrustSetFlagsof(long value) ConstructTrustSetFlagswith a given value.booleanClear deep freeze on the trust line.booleanUnfreeze the trust line.booleanDisable the No Ripple flag, allowing rippling on this trust line.booleanRequire a fully canonical signature.booleanIndicates that this transaction is an inner transaction of a Batch transaction.booleanDeep freeze the trust line.booleanAuthorize the other party to hold currency issued by this account.booleanFreeze the trust line.booleanEnable the No Ripple flag, which blocks rippling between two trust lines of the same currency if this flag is enabled on both.
-
Field Details
-
UNSET
Constant for an unset flag. -
SET_F_AUTH
ConstantTrustSetFlagsfor thetfSetfAuthflag. -
SET_NO_RIPPLE
ConstantTrustSetFlagsfor thetfSetNoRippleflag. -
CLEAR_NO_RIPPLE
ConstantTrustSetFlagsfor thetfClearNoRippleflag. -
SET_FREEZE
ConstantTrustSetFlagsfor thetfSetFreezeflag. -
CLEAR_FREEZE
ConstantTrustSetFlagsfor thetfClearFreezeflag. -
SET_DEEP_FREEZE
ConstantTrustSetFlagsfor thetfSetDeepFreezeflag. -
CLEAR_DEEP_FREEZE
ConstantTrustSetFlagsfor thetfClearDeepFreezeflag. -
INNER_BATCH_TXN
ConstantTrustSetFlagsfor thetfInnerBatchTxnflag. This flag is used to indicate that a transaction is an inner transaction of a Batch.- See Also:
-
-
Method Details
-
builder
Create a newTrustSetFlags.Builder.- Returns:
- A new
TrustSetFlags.Builder.
-
of
ConstructTrustSetFlagswith a given value.- Parameters:
value- The long-number encoded flags value of thisTrustSetFlags.- Returns:
- New
TrustSetFlags.
-
empty
Construct an empty instance ofTrustSetFlags. Transactions with empty flags will not be serialized with aFlagsfield.- Returns:
- An empty
TrustSetFlags.
-
tfFullyCanonicalSig
public boolean tfFullyCanonicalSig()Require a fully canonical signature.- Overrides:
tfFullyCanonicalSigin classTransactionFlags- Returns:
trueiftfFullyCanonicalSigis set, otherwisefalse.- See Also:
-
tfSetfAuth
public boolean tfSetfAuth()Authorize the other party to hold currency issued by this account. (No effect unless usingAccountSet.AccountSetFlag.REQUIRE_AUTH). Cannot be unset.- Returns:
trueiftfSetfAuthis set, otherwisefalse.
-
tfSetNoRipple
public boolean tfSetNoRipple()Enable the No Ripple flag, which blocks rippling between two trust lines of the same currency if this flag is enabled on both.- Returns:
trueiftfSetNoRippleis set, otherwisefalse.
-
tfClearNoRipple
public boolean tfClearNoRipple()Disable the No Ripple flag, allowing rippling on this trust line.- Returns:
trueiftfClearNoRippleis set, otherwisefalse.
-
tfSetFreeze
public boolean tfSetFreeze()Freeze the trust line.- Returns:
trueiftfSetFreezeis set, otherwisefalse.
-
tfClearFreeze
public boolean tfClearFreeze()Unfreeze the trust line.- Returns:
trueiftfClearFreezeis set, otherwisefalse.
-
tfSetDeepFreeze
public boolean tfSetDeepFreeze()Deep freeze the trust line.- Returns:
trueiftfSetDeepFreezeis set, otherwisefalse.
-
tfClearDeepFreeze
public boolean tfClearDeepFreeze()Clear deep freeze on the trust line.- Returns:
trueiftfClearDeepFreezeis set, otherwisefalse.
-
tfInnerBatchTxn
public boolean tfInnerBatchTxn()Indicates that this transaction is an inner transaction of a Batch transaction.- Overrides:
tfInnerBatchTxnin classTransactionFlags- Returns:
trueiftfInnerBatchTxnis set, otherwisefalse.- See Also:
-