Class DelimitedFileConfiguration


  • public class DelimitedFileConfiguration
    extends java.lang.Object
    This class specifies how the values in a tab or comma separated file should be used to fill in objects in an ObjectStore.
    Author:
    Kim Rutherford
    • Constructor Summary

      Constructors 
      Constructor Description
      DelimitedFileConfiguration​(Model model, java.io.InputStream inputStream)
      Create a new DelimitedFileConfiguration from an InputStream.
    • Constructor Detail

      • DelimitedFileConfiguration

        public DelimitedFileConfiguration​(Model model,
                                          java.io.InputStream inputStream)
                                   throws java.io.IOException
        Create a new DelimitedFileConfiguration from an InputStream.
        Parameters:
        model - The model to use when looking for ClassDescriptors and FieldDescriptors
        inputStream - The InputStream to read the configuration from
        Throws:
        java.io.IOException - throws if the read fails
    • Method Detail

      • getConfigClassDescriptor

        public ClassDescriptor getConfigClassDescriptor()
        Return the ClassDescriptor of the class to modify.
        Returns:
        the ClassDescriptor
      • getColumnFieldDescriptors

        public java.util.List getColumnFieldDescriptors()
        Return a List of the configured AttributeDescriptors. The List is indexed by column number (starting with column 0). If a column has no configured AttributeDescriptor the List will have null at that index.
        Returns:
        the configured AttributeDescriptors
      • getColumnFieldClasses

        public java.util.List getColumnFieldClasses()
        Return a List of Class objects corresponding to the fields returned by getColumnFieldDescriptors().
        Returns:
        the Class objects