Class LegacyTxnTags
java.lang.Object
com.infinitekind.moneydance.model.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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LegacyTxnTags.TxnTag
A TxnClass represents a classification or 'class' that can be applied to a split. -
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TAG_PARAM_PREFIX
static java.lang.String
TXN_TAG_KEY
-
Constructor Summary
Constructors Constructor Description LegacyTxnTags(AccountBook book)
-
Method Summary
Modifier and Type Method Description java.util.List<LegacyTxnTags.TxnTag>
getTagsForIDString(java.lang.String tagStr)
Get the tags that identified in the given tagset string.java.util.List<LegacyTxnTags.TxnTag>
getTagsForTxn(AbstractTxn txn)
Get the tags that are associated with the given transaction.java.util.List<LegacyTxnTags.TxnTag>
getTagsForTxn(Txn txn)
Get the tags that are associated with the given transaction.java.util.List<java.lang.String>
getTagStringsForIDString(java.lang.String tagStr)
Get the tags that identified in the given tagset string.void
loadFromLegacyData()
boolean
removeTag(LegacyTxnTags.TxnTag tag)
Remove the given tag from the tag set if there are no transactions referencing the tag.void
upgradeFromLegacyData()
Convert the transaction tags in older data structures to the new simpler tags/keywords model
-
Field Details
-
TAG_PARAM_PREFIX
public static final java.lang.String TAG_PARAM_PREFIX- See Also:
- Constant Field Values
-
TXN_TAG_KEY
public static final java.lang.String TXN_TAG_KEY- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
loadFromLegacyData
public void loadFromLegacyData() -
upgradeFromLegacyData
public void upgradeFromLegacyData()Convert the transaction tags in older data structures to the new simpler tags/keywords model -
removeTag
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
Get the tags that are associated with the given transaction. This will never return null. -
getTagsForTxn
Get the tags that are associated with the given transaction. This will never return null. -
getTagsForIDString
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.
-