hepdata is hosted by Hepforge, IPPP Durham

cedar.hepdata.model
Class Reference

java.lang.Object
  extended by cedar.hepdata.model.Reference
All Implemented Interfaces:
HDPersistable

public class Reference
extends java.lang.Object
implements HDPersistable

One instance of a published paper.

Version:
$Date: 2006-02-02 16:35:56 +0000 (Thu, 02 Feb 2006) $ $Revision: 500 $
Author:
S Butterworth

Constructor Summary
Reference(HDObjectReader reader)
          builds ref from a file
 
Method Summary
 Author getAuthor()
           
 java.util.Date getDate()
           
 java.lang.String getDescription()
           
 int getId()
          Return the ref ID
 int getPaperId()
           
 java.lang.String getType()
           
 void setAuthor(Author auth)
           
 void setDate(java.util.Date dt)
           
 void setDescription(java.lang.String s)
           
 void setId(int id)
          Set the internal ID code
 void setPaperId(int id)
           
 void setType(java.lang.String s)
           
 java.lang.String toString()
          Produce a string representation of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Reference

public Reference(HDObjectReader reader)
          throws HDException
builds ref from a file

Throws:
HDException

Method Detail

getId

public int getId()
Return the ref ID

Specified by:
getId in interface HDPersistable
Returns:
refId


setId

public void setId(int id)
Description copied from interface: HDPersistable
Set the internal ID code

Specified by:
setId in interface HDPersistable
Parameters:
id - internal ID used to define (part of) the


getPaperId

public int getPaperId()

setPaperId

public void setPaperId(int id)

getAuthor

public Author getAuthor()

setAuthor

public void setAuthor(Author auth)

getDate

public java.util.Date getDate()

setDate

public void setDate(java.util.Date dt)

getType

public java.lang.String getType()

setType

public void setType(java.lang.String s)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String s)

toString

public java.lang.String toString()
Description copied from interface: HDPersistable
Produce a string representation of the object

Specified by:
toString in interface HDPersistable
Overrides:
toString in class java.lang.Object


Generated 20060512 1623

HEPData