Package mgui.io.domestic.datasources
Class ImportDataTableOptions
java.lang.Object
mgui.interfaces.InterfaceOptions
mgui.io.InterfaceIOOptions
mgui.io.domestic.datasources.ImportDataTableOptions
- All Implemented Interfaces:
InterfaceObject,NamedObject,TreeObject,CleanableObject,XMLObject
- Direct Known Subclasses:
ImportDataTableTextOptions
public abstract class ImportDataTableOptions extends InterfaceIOOptions
Specifies options for importing data to a data source table.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Nested Class Summary
Nested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType -
Field Summary
Fields Modifier and Type Field Description booleanadd_uidbooleanfail_on_errorbooleanoverwrite_existingjava.lang.Stringuid_name -
Constructor Summary
Constructors Constructor Description ImportDataTableOptions() -
Method Summary
Modifier and Type Method Description java.util.ArrayList<java.util.ArrayList<DataField>>getDataFields()Returns theDataFieldobjects defined for this options (i.e., corresponding to the specified input files).DataSourcegetDataSource()javax.swing.JFileChoosergetFileChooser()Returns a file chooser appropriate for this options instancejavax.swing.JFileChoosergetFileChooser(java.io.File f)Returns a file chooser appropriate for this options instancejava.io.File[]getFiles()Returns the list of files associated with this options instancejava.util.ArrayList<java.util.ArrayList<java.lang.Boolean>>getIncludeFields()Returns a list of include values; i.e., whether to include the corresponding field in the import.java.util.ArrayList<java.lang.String>getNames()voidsetDataFields(java.util.ArrayList<java.util.ArrayList<DataField>> data_fields)Sets the data fields which define this import; each list corresponds to the associated input file.voidsetDataFields(java.util.ArrayList<java.util.ArrayList<DataField>> data_fields, java.util.ArrayList<java.util.ArrayList<java.lang.Boolean>> include_fields)Sets the data fields which define this import; each list corresponds to the associated input file.voidsetDataSource(DataSource source)voidsetFiles(java.io.File[] files)Sets the list of files associated with this options instancevoidsetNames(java.util.ArrayList<java.lang.String> names)voidsetObject(InterfaceObject obj)Sets the object on which to perform an I/O operationMethods inherited from class mgui.io.InterfaceIOOptions
getDTD, getLocalName, getShortXML, getXML, getXML, getXMLSchema, handleXMLElementEnd, handleXMLElementStart, handleXMLString, setFromComplementaryOptions, writeXML, writeXML, writeXMLMethods inherited from class mgui.interfaces.InterfaceOptions
clean, destroy, getName, getTreeLabel, isDestroyed, issueTreeNode, setName, setTreeNodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
add_uid
public boolean add_uid -
uid_name
public java.lang.String uid_name -
overwrite_existing
public boolean overwrite_existing -
fail_on_error
public boolean fail_on_error
-
-
Constructor Details
-
ImportDataTableOptions
public ImportDataTableOptions()
-
-
Method Details
-
getFiles
public java.io.File[] getFiles()Description copied from class:InterfaceIOOptionsReturns the list of files associated with this options instance- Specified by:
getFilesin classInterfaceIOOptions- Returns:
-
setFiles
public void setFiles(java.io.File[] files)Description copied from class:InterfaceIOOptionsSets the list of files associated with this options instance- Specified by:
setFilesin classInterfaceIOOptions
-
getFileChooser
public javax.swing.JFileChooser getFileChooser()Description copied from class:InterfaceIOOptionsReturns a file chooser appropriate for this options instance- Specified by:
getFileChooserin classInterfaceIOOptions- Returns:
-
getFileChooser
public javax.swing.JFileChooser getFileChooser(java.io.File f)Description copied from class:InterfaceIOOptionsReturns a file chooser appropriate for this options instance- Specified by:
getFileChooserin classInterfaceIOOptions- Returns:
-
getNames
public java.util.ArrayList<java.lang.String> getNames() -
setNames
public void setNames(java.util.ArrayList<java.lang.String> names) -
setDataSource
-
getDataSource
-
getDataFields
Returns theDataFieldobjects defined for this options (i.e., corresponding to the specified input files).- Returns:
-
setDataFields
Sets the data fields which define this import; each list corresponds to the associated input file.- Parameters:
data_fields-
-
getIncludeFields
public java.util.ArrayList<java.util.ArrayList<java.lang.Boolean>> getIncludeFields()Returns a list of include values; i.e., whether to include the corresponding field in the import.- Returns:
-
setDataFields
public void setDataFields(java.util.ArrayList<java.util.ArrayList<DataField>> data_fields, java.util.ArrayList<java.util.ArrayList<java.lang.Boolean>> include_fields)Sets the data fields which define this import; each list corresponds to the associated input file. Theinlcude_fieldsparameter defines which fields to include; if this isnull, all fields will be imported.- Parameters:
data_fields-include_fields-
-
setObject
Description copied from class:InterfaceIOOptionsSets the object on which to perform an I/O operation- Specified by:
setObjectin classInterfaceIOOptions- Throws:
java.lang.ClassCastException- ifobjis the wrong class for this options instance
-