Class TabularTextImportSpec
java.lang.Object
com.infinitekind.moneydance.model.txtimport.TabularTextImportSpec
public class TabularTextImportSpec
extends java.lang.Object
Class that specifies how tabular text data should be imported.
- Since:
- Moneydance 2017.3 build 1605
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TabularTextImportSpec.DateField
-
Field Summary
Fields Modifier and Type Field Description static AcctFilter
IMPORTABLE_ACCOUNTS_FILTER
-
Constructor Summary
Constructors Constructor Description TabularTextImportSpec(AccountBook book, com.infinitekind.moneydance.online.OnlineBankingUI uiProxy)
-
Method Summary
Modifier and Type Method Description TabularTextImportSpec
duplicate()
Create a copy of this import specification.Account
getAccount()
AccountBook
getBook()
ImportDataSourceType
getDataSourceType()
ImportDateFieldOrder
getDateFieldOrder()
char
getDecimalPoint()
char
getDelimiter()
java.util.List<ImportFieldType>
getFields()
boolean
getPreScanMode()
Get whether or not the import should actually make any changes to the local data.boolean
getShouldConfirmTransactions()
boolean
getShouldMergeTransactions()
com.infinitekind.moneydance.online.OnlineBankingUI
getUIProxy()
void
setAccount(Account account)
void
setDataSourceType(ImportDataSourceType dataSource)
Set the source of data for this import, which Moneydance uses to make decisions about the import.void
setDateFieldOrder(ImportDateFieldOrder dateFieldOrder)
void
setDecimalPoint(char decimalPoint)
void
setDelimiter(char delimiter)
void
setFields(java.util.List<ImportFieldType> importFields)
void
setPreScanMode(boolean newPreScanMode)
Set whether or not the import is in "pre scan" mode - that is, where it scans the data, attempting to discover delimiters, date formats, decimal points, and field types without adding any transactions or making changes to the local data.void
setShouldConfirmTransactions(boolean shouldConfirmTransactions)
void
setShouldMergeTransactions(boolean shouldMergeTransactions)
void
takeSettingsFrom(TabularTextImportSpec otherSpec)
java.lang.String
toString()
-
Field Details
-
Constructor Details
-
TabularTextImportSpec
public TabularTextImportSpec(AccountBook book, com.infinitekind.moneydance.online.OnlineBankingUI uiProxy)
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
duplicate
Create a copy of this import specification. This is helpful if you want to perform a test scan of some date. You can duplicate this spec, then set preScanMode to true for the copy, then run the import. The import process will change the settings in the copy if it detects better parameters when running the import. You can then call takeSettingsFrom(copyOfSpec) to copy the changed parameters back into this object to be used for the actual import. -
takeSettingsFrom
-
getBook
-
getUIProxy
public com.infinitekind.moneydance.online.OnlineBankingUI getUIProxy() -
getAccount
-
setAccount
-
setFields
-
getFields
-
getPreScanMode
public boolean getPreScanMode()Get whether or not the import should actually make any changes to the local data. For test passes on the data this can be set to false and the importer may be queried to get the fields that it thinks are correct for any given input. -
setPreScanMode
public void setPreScanMode(boolean newPreScanMode)Set whether or not the import is in "pre scan" mode - that is, where it scans the data, attempting to discover delimiters, date formats, decimal points, and field types without adding any transactions or making changes to the local data. -
getShouldMergeTransactions
public boolean getShouldMergeTransactions() -
setShouldMergeTransactions
public void setShouldMergeTransactions(boolean shouldMergeTransactions) -
getShouldConfirmTransactions
public boolean getShouldConfirmTransactions() -
setShouldConfirmTransactions
public void setShouldConfirmTransactions(boolean shouldConfirmTransactions) -
getDataSourceType
-
setDataSourceType
Set the source of data for this import, which Moneydance uses to make decisions about the import. For example, with DOWNLOADED data we attempt to merge duplicates and automatically categorise transactions in a way that is different from data that is migrated from another file, which often already has category information and has different kinds of duplicates. -
getDateFieldOrder
-
setDateFieldOrder
-
getDelimiter
public char getDelimiter() -
setDelimiter
public void setDelimiter(char delimiter) -
getDecimalPoint
public char getDecimalPoint() -
setDecimalPoint
public void setDecimalPoint(char decimalPoint)
-