Package org.xrpl.xrpl4j.model.flags
Class NfTokenFlags
java.lang.Object
org.xrpl.xrpl4j.model.flags.Flags
org.xrpl.xrpl4j.model.flags.NfTokenFlags
A set of static
Flags which can be set on NfTokenObjects.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NfTokenFlagsConstantNfTokenFlagsfor thelsfBurnableaccount flag.static final NfTokenFlagsConstantNfTokenFlagsfor thelsfOnlyXrpaccount flag.static final NfTokenFlagsConstantNfTokenFlagsfor thelsfTransferableaccount flag.static final NfTokenFlagsConstantNfTokenFlagsfor thelsfTrustLineaccount flag.static final NfTokenFlagsConstant for an unset flag. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf enabled, the issuer (or an entity authorized by the issuer) can destroy this NFToken.booleanIf enabled, this NFToken can only be offered or sold for XRP.booleanIf enabled, this NFToken can be transferred from one holder to another.booleanIf enabled, automatically create trust lines to hold transfer fees.static NfTokenFlagsof(long value) ConstructNfTokenFlagswith a given value.
-
Field Details
-
UNSET
Constant for an unset flag. -
BURNABLE
ConstantNfTokenFlagsfor thelsfBurnableaccount flag. -
ONLY_XRP
ConstantNfTokenFlagsfor thelsfOnlyXrpaccount flag. -
TRUST_LINE
ConstantNfTokenFlagsfor thelsfTrustLineaccount flag. -
TRANSFERABLE
ConstantNfTokenFlagsfor thelsfTransferableaccount flag.
-
-
Method Details
-
of
ConstructNfTokenFlagswith a given value.- Parameters:
value- The long-number encoded flags value of thisNfTokenFlags.- Returns:
- New
NfTokenFlags.
-
lsfBurnable
public boolean lsfBurnable()If enabled, the issuer (or an entity authorized by the issuer) can destroy this NFToken. The object's owner can always do so.- Returns:
trueiflsfBurnableis set, otherwisefalse.
-
lsfOnlyXrp
public boolean lsfOnlyXrp()If enabled, this NFToken can only be offered or sold for XRP.- Returns:
trueiflsfOnlyXrpis set, otherwisefalse.
-
lsfTrustLine
public boolean lsfTrustLine()If enabled, automatically create trust lines to hold transfer fees. Otherwise, buying or selling this NFToken for a fungible token amount fails if the issuer does not have a trust line for that token. The fixRemoveNFTokenAutoTrustLine amendment makes it invalid to enable this flag.- Returns:
trueiflsfTrustLineis set, otherwisefalse.
-
lsfTransferable
public boolean lsfTransferable()If enabled, this NFToken can be transferred from one holder to another. Otherwise, it can only be transferred to or from the issuer.- Returns:
trueiflsfTransferableis set, otherwisefalse.
-