Class Reference
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.pride.prideobjects.Reference
- All Implemented Interfaces:
PrideObject,Serializable
A simple publication reference object.
- Author:
- Harald Barsnes
- See Also:
-
Field Summary
Fields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDoi()Returns the Digital Object Identifier (DOI) of the reference.Returns the name to use when serializing the object.getPmid()Returns the PubMed ID of the reference.Returns the reference as a string.voidSet the Digital Object Identifier (DOI) of the reference.voidSet the PubMed ID of the reference.voidsetReference(String reference) Set the reference.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
Reference
public Reference()Empty default constructor -
Reference
Create a new Reference object.- Parameters:
reference- the referencepmid- the PubMed IDdoi- the DOI
-
-
Method Details
-
getReference
Returns the reference as a string.- Returns:
- the reference
-
setReference
Set the reference.- Parameters:
reference- the reference to set
-
getPmid
Returns the PubMed ID of the reference.- Returns:
- the pmid
-
setPmid
Set the PubMed ID of the reference.- Parameters:
pmid- the pmid to set
-
getDoi
Returns the Digital Object Identifier (DOI) of the reference.- Returns:
- the doi
-
setDoi
Set the Digital Object Identifier (DOI) of the reference.- Parameters:
doi- the doi to set
-
getFileName
Description copied from interface:PrideObjectReturns the name to use when serializing the object.- Specified by:
getFileNamein interfacePrideObject- Returns:
- the name to use when serializing the object
-