Class ImportRecord
- java.lang.Object
-
- org.dspace.importer.external.datamodel.ImportRecord
-
public class ImportRecord extends Object
This class contains all MetadatumDTO objects from an imported item- Author:
- Roeland Dillen (roeland at atmire dot com)
-
-
Constructor Summary
Constructors Constructor Description ImportRecord(List<MetadatumDTO> valueList)Create an ImportRecord instance initialized with a List of MetadatumDTO objects
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(MetadatumDTO value)Add a value to the valueListCollection<MetadatumDTO>getValue(String schema, String element, String qualifier)Return the MetadatumDTO's that are related to a given schema/element/qualifier pair/tripletList<MetadatumDTO>getValueList()Retrieve an unmodifiableList of MetadatumDTOStringtoString()Build a string based on the values in the valueList object The syntax will be Record{valueList={"schema"; "element" ; "qualifier"; "value"}}
-
-
-
Constructor Detail
-
ImportRecord
public ImportRecord(List<MetadatumDTO> valueList)
Create an ImportRecord instance initialized with a List of MetadatumDTO objects- Parameters:
valueList- list of metadata values
-
-
Method Detail
-
getValueList
public List<MetadatumDTO> getValueList()
Retrieve an unmodifiableList of MetadatumDTO- Returns:
- List of MetadatumDTO
-
toString
public String toString()
Build a string based on the values in the valueList object The syntax will be Record{valueList={"schema"; "element" ; "qualifier"; "value"}}
-
getValue
public Collection<MetadatumDTO> getValue(String schema, String element, String qualifier)
Return the MetadatumDTO's that are related to a given schema/element/qualifier pair/triplet- Parameters:
schema- metadata field schemaelement- metadata field elementqualifier- metadata field qualifier- Returns:
- the MetadatumDTO's that are related to a given schema/element/qualifier pair/triplet
-
addValue
public void addValue(MetadatumDTO value)
Add a value to the valueList- Parameters:
value- The MetadatumDTO to add to the valueList
-
-