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
  • 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: InterfaceIOOptions
      Returns the list of files associated with this options instance
      Specified by:
      getFiles in class InterfaceIOOptions
      Returns:
    • setFiles

      public void setFiles​(java.io.File[] files)
      Description copied from class: InterfaceIOOptions
      Sets the list of files associated with this options instance
      Specified by:
      setFiles in class InterfaceIOOptions
    • getFileChooser

      public javax.swing.JFileChooser getFileChooser()
      Description copied from class: InterfaceIOOptions
      Returns a file chooser appropriate for this options instance
      Specified by:
      getFileChooser in class InterfaceIOOptions
      Returns:
    • getFileChooser

      public javax.swing.JFileChooser getFileChooser​(java.io.File f)
      Description copied from class: InterfaceIOOptions
      Returns a file chooser appropriate for this options instance
      Specified by:
      getFileChooser in class InterfaceIOOptions
      Returns:
    • getNames

      public java.util.ArrayList<java.lang.String> getNames()
    • setNames

      public void setNames​(java.util.ArrayList<java.lang.String> names)
    • setDataSource

      public void setDataSource​(DataSource source)
    • getDataSource

      public DataSource getDataSource()
    • getDataFields

      public java.util.ArrayList<java.util.ArrayList<DataField>> getDataFields()
      Returns the DataField objects defined for this options (i.e., corresponding to the specified input files).
      Returns:
    • setDataFields

      public void setDataFields​(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.
      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. The inlcude_fields parameter defines which fields to include; if this is null, all fields will be imported.
      Parameters:
      data_fields -
      include_fields -
    • setObject

      public void setObject​(InterfaceObject obj) throws java.lang.ClassCastException
      Description copied from class: InterfaceIOOptions
      Sets the object on which to perform an I/O operation
      Specified by:
      setObject in class InterfaceIOOptions
      Throws:
      java.lang.ClassCastException - if obj is the wrong class for this options instance