Class LegacyTxnTags


  • public class LegacyTxnTags
    extends java.lang.Object
    A TxnTagSet keeps track of the set of TxnTags that are associated with an AbstractTxn. This class is only available as of build 414
    • Constructor Detail

      • LegacyTxnTags

        public LegacyTxnTags​(AccountBook book)
    • Method Detail

      • loadFromLegacyData

        public void loadFromLegacyData()
      • upgradeFromLegacyData

        public void upgradeFromLegacyData()
        Convert the transaction tags in older data structures to the new simpler tags/keywords model
      • removeTag

        public boolean removeTag​(LegacyTxnTags.TxnTag tag)
        Remove the given tag from the tag set if there are no transactions referencing the tag. Returns true if the tag was able to be removed.
      • getTagsForTxn

        public final java.util.List<LegacyTxnTags.TxnTag> getTagsForTxn​(AbstractTxn txn)
        Get the tags that are associated with the given transaction. This will never return null.
      • getTagsForTxn

        public final java.util.List<LegacyTxnTags.TxnTag> getTagsForTxn​(Txn txn)
        Get the tags that are associated with the given transaction. This will never return null.
      • getTagsForIDString

        public final java.util.List<LegacyTxnTags.TxnTag> getTagsForIDString​(java.lang.String tagStr)
        Get the tags that identified in the given tagset string.
      • getTagStringsForIDString

        public final java.util.List<java.lang.String> getTagStringsForIDString​(java.lang.String tagStr)
        Get the tags that identified in the given tagset string.