Package org.dspace.browse
Class ItemListConfig
java.lang.Object
org.dspace.browse.ItemListConfig
Class to mediate with the item list configuration
- Author:
- Richard Jones
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]getMetadata(int col) What metadata is to go in the given column number?final 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 Details
-
ItemListConfig
Create a new instance of the Item list configuration. This loads all the required information from configuration- Throws:
BrowseException- if count error
-
-
Method Details
-
numCols
public int numCols()how many columns are there?- Returns:
- the number of columns
-
getMetadata
What metadata is to go in the given column number?- Parameters:
col- column- Returns:
- array of metadata
-
interpretField
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
-