Class NfTokenFlags

java.lang.Object
org.xrpl.xrpl4j.model.flags.Flags
org.xrpl.xrpl4j.model.flags.NfTokenFlags

public class NfTokenFlags extends Flags
A set of static Flags which can be set on NfTokenObjects.
  • Field Details

  • Method Details

    • of

      public static NfTokenFlags of(long value)
      Construct NfTokenFlags with a given value.
      Parameters:
      value - The long-number encoded flags value of this NfTokenFlags.
      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:
      true if lsfBurnable is set, otherwise false.
    • lsfOnlyXrp

      public boolean lsfOnlyXrp()
      If enabled, this NFToken can only be offered or sold for XRP.
      Returns:
      true if lsfOnlyXrp is set, otherwise false.
    • 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:
      true if lsfTrustLine is set, otherwise false.
    • 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:
      true if lsfTransferable is set, otherwise false.