/**
* class to handle an article citation
*
* author: Luc Longpré
* 10/24/2005
*/
public class Article extends Reference
{
private String journal;
private String volume; //optional in a citation
private String pages; //optional in a citation
public Article(String theAuthor, String theTitle,
String theYear, String theJournal,
String theVolume, String thePages)
{
super(theAuthor,theTitle,theYear);
journal = theJournal;
volume = theVolume;
pages = thePages;
}
public String toString()
{
String outString;
outString = author + ", " + title + ", " + " " + journal + ", ";
if (!volume.equals(""))
outString = outString + "" + volume + "";
outString = outString + " (" + year + ")";
if (pages.equals(""))
outString = outString + ".";
else
outString = outString + ", " + pages + ".";
return outString;
}
}