Package org.dspace.external.model
Class ExternalDataObject
java.lang.Object
org.dspace.external.model.ExternalDataObject
The representation model object for external data
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorExternalDataObject(String source) Constructor for the ExternalDataObject with as parameter the source of where it came from -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetadata(MetadataValueDTO metadataValueDTO) This method will add a Metadata value to the list of metadata valuesbooleanEquality test for ExternalDataObject takes into account the fact that we might have lists of metadata values which are identical except for sort order, so we sort and compare these using a custom comparator.Generic getter for the display valuegetId()Generic getter for the IDGeneric getter for the MetadataGeneric getter for the sourcegetValue()Generic getter for the valueinthashCode()Explicit override of Object hashCode()voidsetDisplayValue(String displayValue) Generic setter for the display valuevoidGeneric setter for the IDvoidsetMetadata(List<MetadataValueDTO> metadata) Generic setter for the MetadatavoidGeneric setter for the sourcevoidGeneric setter for the valuetoString()Sort metadata before printing, to help with comparison by eye
-
Constructor Details
-
ExternalDataObject
public ExternalDataObject()Default constructor -
ExternalDataObject
Constructor for the ExternalDataObject with as parameter the source of where it came from- Parameters:
source- The source where the ExternalDataObject came from
-
-
Method Details
-
getSource
Generic getter for the source- Returns:
- The source
-
setSource
Generic setter for the source- Parameters:
source- The source to be set
-
getMetadata
Generic getter for the Metadata- Returns:
- The metadata
-
setMetadata
Generic setter for the Metadata- Parameters:
metadata- The metadata to be set
-
addMetadata
This method will add a Metadata value to the list of metadata values- Parameters:
metadataValueDTO- The metadata value to be added.
-
getDisplayValue
Generic getter for the display value- Returns:
- The display value
-
setDisplayValue
Generic setter for the display value- Parameters:
displayValue- The display value to be set
-
getId
Generic getter for the ID- Returns:
- The id
-
setId
Generic setter for the ID- Parameters:
id- The id to be set
-
getValue
Generic getter for the value- Returns:
- the value value of this ExternalDataObject
-
setValue
Generic setter for the value- Parameters:
value- The value to be set on this ExternalDataObject
-
toString
Sort metadata before printing, to help with comparison by eye -
equals
Equality test for ExternalDataObject takes into account the fact that we might have lists of metadata values which are identical except for sort order, so we sort and compare these using a custom comparator. -
hashCode
public int hashCode()Explicit override of Object hashCode()
-