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 classTabularTextImportSpec.DateField -
Field Summary
Fields Modifier and Type Field Description static AcctFilterIMPORTABLE_ACCOUNTS_FILTER -
Constructor Summary
Constructors Constructor Description TabularTextImportSpec(AccountBook book, com.infinitekind.moneydance.online.OnlineBankingUI uiProxy) -
Method Summary
Modifier and Type Method Description TabularTextImportSpecduplicate()Create a copy of this import specification.AccountgetAccount()AccountBookgetBook()ImportDataSourceTypegetDataSourceType()ImportDateFieldOrdergetDateFieldOrder()chargetDecimalPoint()chargetDelimiter()java.util.List<ImportFieldType>getFields()booleangetPreScanMode()Get whether or not the import should actually make any changes to the local data.booleangetShouldConfirmTransactions()booleangetShouldMergeTransactions()com.infinitekind.moneydance.online.OnlineBankingUIgetUIProxy()voidsetAccount(Account account)voidsetDataSourceType(ImportDataSourceType dataSource)Set the source of data for this import, which Moneydance uses to make decisions about the import.voidsetDateFieldOrder(ImportDateFieldOrder dateFieldOrder)voidsetDecimalPoint(char decimalPoint)voidsetDelimiter(char delimiter)voidsetFields(java.util.List<ImportFieldType> importFields)voidsetPreScanMode(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.voidsetShouldConfirmTransactions(boolean shouldConfirmTransactions)voidsetShouldMergeTransactions(boolean shouldMergeTransactions)voidtakeSettingsFrom(TabularTextImportSpec otherSpec)java.lang.StringtoString()
-
Field Details
-
Constructor Details
-
TabularTextImportSpec
public TabularTextImportSpec(AccountBook book, com.infinitekind.moneydance.online.OnlineBankingUI uiProxy)
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin 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)
-