Package org.dspace.external.model
Class ExternalDataObject
- java.lang.Object
-
- org.dspace.external.model.ExternalDataObject
-
public class ExternalDataObject extends Object
The representation model object for external data
-
-
Constructor Summary
Constructors Constructor Description ExternalDataObject()Default constructorExternalDataObject(String source)Constructor for the ExternalDataObject with as parameter the source of where it came from
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMetadata(MetadataValueDTO metadataValueDTO)This method will add a Metadata value to the list of metadata valuesStringgetDisplayValue()Generic getter for the display valueStringgetId()Generic getter for the IDList<MetadataValueDTO>getMetadata()Generic getter for the MetadataStringgetSource()Generic getter for the sourceStringgetValue()Generic getter for the valuevoidsetDisplayValue(String displayValue)Generic setter for the display valuevoidsetId(String id)Generic setter for the IDvoidsetMetadata(List<MetadataValueDTO> metadata)Generic setter for the MetadatavoidsetSource(String source)Generic setter for the sourcevoidsetValue(String value)Generic setter for the value
-
-
-
Constructor Detail
-
ExternalDataObject
public ExternalDataObject()
Default constructor
-
ExternalDataObject
public ExternalDataObject(String source)
Constructor for the ExternalDataObject with as parameter the source of where it came from- Parameters:
source- The source where the ExternalDataObject came from
-
-
Method Detail
-
getSource
public String getSource()
Generic getter for the source- Returns:
- The source
-
setSource
public void setSource(String source)
Generic setter for the source- Parameters:
source- The source to be set
-
getMetadata
public List<MetadataValueDTO> getMetadata()
Generic getter for the Metadata- Returns:
- The metadata
-
setMetadata
public void setMetadata(List<MetadataValueDTO> metadata)
Generic setter for the Metadata- Parameters:
metadata- The metadata to be set
-
addMetadata
public void addMetadata(MetadataValueDTO metadataValueDTO)
This method will add a Metadata value to the list of metadata values- Parameters:
metadataValueDTO- The metadatavalue to be added
-
getDisplayValue
public String getDisplayValue()
Generic getter for the display value- Returns:
- The display value
-
setDisplayValue
public void setDisplayValue(String displayValue)
Generic setter for the display value- Parameters:
displayValue- The display value to be set
-
getId
public String getId()
Generic getter for the ID- Returns:
- The id
-
setId
public void setId(String id)
Generic setter for the ID- Parameters:
id- The id to be set
-
getValue
public String getValue()
Generic getter for the value- Returns:
- the value value of this ExternalDataObject
-
setValue
public void setValue(String value)
Generic setter for the value- Parameters:
value- The value to be set on this ExternalDataObject
-
-