org.dspace.browse
Class ItemListConfig

java.lang.Object
  extended by org.dspace.browse.ItemListConfig

public class ItemListConfig
extends Object

Class to mediate with the item list configuration

Author:
Richard Jones

Constructor Summary
ItemListConfig()
          Create a new instance of the Item list configuration.
 
Method Summary
 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.
 int numCols()
          how many columns are there?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
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 -
Returns:

interpretField

public 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


Copyright © 2010 DuraSpace. All Rights Reserved.