com.compomics.util.pride.prideobjects
Class Reference

java.lang.Object
  extended by com.compomics.util.pride.prideobjects.Reference
All Implemented Interfaces:
PrideObject, Serializable

public class Reference
extends Object
implements PrideObject, Serializable

A simple publication reference object.

Author:
Harald Barsnes
See Also:
Serialized Form

Constructor Summary
Reference(String reference, String pmid, String doi)
          Create a new Reference object.
 
Method Summary
 String getDoi()
          Returns the Digital Object Identifier (DOI) of the reference.
 String getFileName()
          Returns the name to use when serializing the object.
 String getPmid()
          Returns the PubMed ID of the reference.
 String getReference()
          Returns the reference as a string.
 void setDoi(String doi)
          Set the Digital Object Identifier (DOI) of the reference.
 void setPmid(String pmid)
          Set the PubMed ID of the reference.
 void setReference(String reference)
          Set the reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reference

public Reference(String reference,
                 String pmid,
                 String doi)
Create a new Reference object.

Parameters:
reference -
pmid -
doi -
Method Detail

getReference

public String getReference()
Returns the reference as a string.

Returns:
the reference

setReference

public void setReference(String reference)
Set the reference.

Parameters:
reference - the reference to set

getPmid

public String getPmid()
Returns the PubMed ID of the reference.

Returns:
the pmid

setPmid

public void setPmid(String pmid)
Set the PubMed ID of the reference.

Parameters:
pmid - the pmid to set

getDoi

public String getDoi()
Returns the Digital Object Identifier (DOI) of the reference.

Returns:
the doi

setDoi

public void setDoi(String doi)
Set the Digital Object Identifier (DOI) of the reference.

Parameters:
doi - the doi to set

getFileName

public String getFileName()
Description copied from interface: PrideObject
Returns the name to use when serializing the object.

Specified by:
getFileName in interface PrideObject
Returns:
the name to use when serializing the object


Copyright © 2013. All Rights Reserved.