public class LegacyTxnTags
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LegacyTxnTags.TxnTag
A TxnClass represents a classification or 'class' that can be applied to
a split.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG_PARAM_PREFIX |
static java.lang.String |
TXN_TAG_KEY |
Constructor and Description |
---|
LegacyTxnTags(AccountBook book) |
Modifier and Type | Method and 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.
|
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
|
public static final java.lang.String TAG_PARAM_PREFIX
public static final java.lang.String TXN_TAG_KEY
public LegacyTxnTags(AccountBook book)
public void upgradeFromLegacyData()
public boolean removeTag(LegacyTxnTags.TxnTag tag)
public final java.util.List<LegacyTxnTags.TxnTag> getTagsForTxn(AbstractTxn txn)
public final java.util.List<LegacyTxnTags.TxnTag> getTagsForTxn(Txn txn)
public final java.util.List<LegacyTxnTags.TxnTag> getTagsForIDString(java.lang.String tagStr)