Package org.dspace.browse
Class ItemListConfig
- java.lang.Object
-
- org.dspace.browse.ItemListConfig
-
public class ItemListConfig extends Object
Class to mediate with the item list configuration- Author:
- Richard Jones
-
-
Constructor Summary
Constructors Constructor Description ItemListConfig()Create a new instance of the Item list configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getMetadata(int col)What metadata is to go in the given column number?String[]interpretField(String mfield, String init)Take a string representation of a metadata field, and return it as an array.intnumCols()how many columns are there?
-
-
-
Constructor Detail
-
ItemListConfig
public ItemListConfig() throws BrowseExceptionCreate 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 metadatainit- the default value of the array elements- Returns:
- a three element array with schema, element and qualifier respectively
- Throws:
IOException- if IO error
-
-