com.compomics.util.pride.prideobjects
Class Reference

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

public class Reference
extends java.lang.Object
implements PrideObject, java.io.Serializable

A simple publication reference object.

Author:
Harald Barsnes
See Also:
Serialized Form

Constructor Summary
Reference(java.lang.String reference, java.lang.String pmid, java.lang.String doi)
          Create a new Reference object.
 
Method Summary
 java.lang.String getDoi()
          Returns the Digital Object Identifier (DOI) of the reference.
 java.lang.String getFileName()
          Returns the name to use when serializing the object.
 java.lang.String getPmid()
          Returns the PubMed ID of the reference.
 java.lang.String getReference()
          Returns the reference as a string.
 void setDoi(java.lang.String doi)
          Set the Digital Object Identifier (DOI) of the reference.
 void setPmid(java.lang.String pmid)
          Set the PubMed ID of the reference.
 void setReference(java.lang.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(java.lang.String reference,
                 java.lang.String pmid,
                 java.lang.String doi)
Create a new Reference object.

Parameters:
reference -
pmid -
doi -
Method Detail

getReference

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

Returns:
the reference

setReference

public void setReference(java.lang.String reference)
Set the reference.

Parameters:
reference - the reference to set

getPmid

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

Returns:
the pmid

setPmid

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

Parameters:
pmid - the pmid to set

getDoi

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

Returns:
the doi

setDoi

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

Parameters:
doi - the doi to set

getFileName

public java.lang.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.