Package org.dspace.app.util
Class DCInputSet
- java.lang.Object
-
- org.dspace.app.util.DCInputSet
-
public class DCInputSet extends Object
Class representing all DC inputs required for a submission, organized into pages- Version:
- $Revision$
- Author:
- Brian S. Hughes, based on work by Jenny Toves, OCLC
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoField(DCInput dcf, boolean addTitleAlternative, boolean addPublishedBefore)DCInput[][]getFields()Get all the fieldsStringgetFormName()Return the name of the form that defines this input setintgetNumberFields()Return the number of fields in this input setbooleanisDefinedMultTitles()Does this set of inputs include an alternate title field?booleanisDefinedPubBefore()Does this set of inputs include the previously published fields?booleanisFieldPresent(String fieldName)Does the current input set define the named field? Scan through every field in every page of the input setbooleanisFieldPresent(String fieldName, String documentType)Does the current input set define the named field? and is valid for the specified document type Scan through every field in every page of the input set
-
-
-
Method Detail
-
getFormName
public String getFormName()
Return the name of the form that defines this input set- Returns:
- formName the name of the form
-
getNumberFields
public int getNumberFields()
Return the number of fields in this input set- Returns:
- number of pages
-
getFields
public DCInput[][] getFields()
Get all the fields- Returns:
- an array containing the fields
-
isDefinedMultTitles
public boolean isDefinedMultTitles()
Does this set of inputs include an alternate title field?- Returns:
- true if the current set has an alternate title field
-
isDefinedPubBefore
public boolean isDefinedPubBefore()
Does this set of inputs include the previously published fields?- Returns:
- true if the current set has all the prev. published fields
-
isFieldPresent
public boolean isFieldPresent(String fieldName)
Does the current input set define the named field? Scan through every field in every page of the input set- Parameters:
fieldName- selects the field.- Returns:
- true if the current set has the named field
-
isFieldPresent
public boolean isFieldPresent(String fieldName, String documentType)
Does the current input set define the named field? and is valid for the specified document type Scan through every field in every page of the input set- Parameters:
fieldName- field namedocumentType- doc type- Returns:
- true if the current set has the named field
-
doField
protected boolean doField(DCInput dcf, boolean addTitleAlternative, boolean addPublishedBefore)
-
-