Class ItemListConfig


  • public class ItemListConfig
    extends Object
    Class to mediate with the item list configuration
    Author:
    Richard Jones
    • Constructor Detail

      • ItemListConfig

        public ItemListConfig()
                       throws BrowseException
        Create a new instance of the Item list configuration. This loads all the required information from configuration
        Throws:
        BrowseException - if count error
    • Method Detail

      • numCols

        public int numCols()
        how many columns are there?
        Returns:
        the number of columns
      • getMetadata

        public String[] getMetadata​(int col)
        What metadata is to go in the given column number?
        Parameters:
        col - column
        Returns:
        array of metadata
      • interpretField

        public final String[] interpretField​(String mfield,
                                             String init)
                                      throws IOException
        Take a string representation of a metadata field, and return it as an array. This is just a convenient utility method to basically break the metadata representation up by its delimiter (.), and stick it in an array, inserting the value of the init parameter when there is no metadata field part.
        Parameters:
        mfield - the string representation of the metadata
        init - the default value of the array elements
        Returns:
        a three element array with schema, element and qualifier respectively
        Throws:
        IOException - if IO error