|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.util.DCInputsReader
public class DCInputsReader
Submission form generator for DSpace. Reads and parses the installation form definitions file, input-forms.xml, from the configuration directory. A forms definition details the page and field layout of the metadata collection pages used by the submission process. Each forms definition starts with a unique name that gets associated with that form set. The file also specifies which collections use which form sets. At a minimum, the definitions file must define a default mapping from the placeholder collection #0 to the distinguished form 'default'. Any collections that use a custom form set are listed paired with the name of the form set they use. The definitions file also may contain sets of value pairs. Each value pair will contain one string that the user reads, and a paired string that will supply the value stored in the database if its sibling display value gets selected from a choice list.
| Field Summary | |
|---|---|
static String |
DEFAULT_COLLECTION
The ID of the default collection. |
| Constructor Summary | |
|---|---|
DCInputsReader()
Parse an XML encoded submission forms template file, and create a hashmap containing all the form information. |
|
DCInputsReader(String fileName)
|
|
| Method Summary | |
|---|---|
DCInputSet |
getInputs(String collectionHandle)
Returns the set of DC inputs used for a particular collection, or the default set if no inputs defined for the collection |
int |
getNumberInputPages(String collectionHandle)
Return the number of pages the inputs span for a desginated collection |
List<String> |
getPairs(String name)
|
Iterator<String> |
getPairsNameIterator()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_COLLECTION
| Constructor Detail |
|---|
public DCInputsReader()
throws DCInputsReaderException
DCInputsReaderException
public DCInputsReader(String fileName)
throws DCInputsReaderException
DCInputsReaderException| Method Detail |
|---|
public Iterator<String> getPairsNameIterator()
public List<String> getPairs(String name)
public DCInputSet getInputs(String collectionHandle)
throws DCInputsReaderException
collectionHandle - collection's unique Handle
DCInputsReaderException - if no default set defined
public int getNumberInputPages(String collectionHandle)
throws DCInputsReaderException
collectionHandle - collection's unique Handle
DCInputsReaderException - if no default set defined
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||