java.lang.Object
com.lanceolav.jreftree.JournalEntry
- All Implemented Interfaces:
- java.lang.Comparable
- public class JournalEntry
- extends java.lang.Object
- implements java.lang.Comparable
entryID
private java.lang.String entryID
citeID
private java.lang.String citeID
title
private java.lang.String title
journal
private java.lang.String journal
year
private java.lang.String year
key
private java.lang.String key
volume
private java.lang.String volume
number
private java.lang.String number
pages
private java.lang.String pages
month
private java.lang.String month
date
private java.lang.String date
note
private java.lang.String note
annote
private java.lang.String annote
pubtype
private java.lang.String pubtype
ISSN
private java.lang.String ISSN
abst
private java.lang.String abst
authors
private java.util.Vector authors
keywords
private java.util.Vector keywords
JournalEntry
public JournalEntry()
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
compareTo
public int compareTo(java.lang.Object j)
- Description copied from interface:
java.lang.Comparable
- Compares this object with another, and returns a numerical result based
on the comparison. If the result is negative, this object sorts less
than the other; if 0, the two are equal, and if positive, this object
sorts greater than the other. To translate this into boolean, simply
perform
o1.compareTo(o2) <op> 0, where op
is one of <, <=, =, !=, >, or >=.
You must make sure that the comparison is mutual, ie.
sgn(x.compareTo(y)) == -sgn(y.compareTo(x)) (where sgn() is
defined as -1, 0, or 1 based on the sign). This includes throwing an
exception in either direction if the two are not comparable; hence,
compareTo(null) should always throw an Exception.
You should also ensure transitivity, in two forms:
x.compareTo(y) > 0 && y.compareTo(z) > 0 implies
x.compareTo(z) > 0; and x.compareTo(y) == 0
implies x.compareTo(z) == y.compareTo(z).
- Specified by:
compareTo in interface java.lang.Comparable
getEntryID
public java.lang.String getEntryID()
setEntryID
public void setEntryID(java.lang.String entryID)
getCiteID
public java.lang.String getCiteID()
setCiteID
public void setCiteID(java.lang.String citeID)
getTitle
public java.lang.String getTitle()
setTitle
public void setTitle(java.lang.String title)
getJournal
public java.lang.String getJournal()
setJournal
public void setJournal(java.lang.String journal)
getYear
public java.lang.String getYear()
setYear
public void setYear(java.lang.String year)
getKey
public java.lang.String getKey()
setKey
public void setKey(java.lang.String key)
getVolume
public java.lang.String getVolume()
setVolume
public void setVolume(java.lang.String volume)
getNumber
public java.lang.String getNumber()
setNumber
public void setNumber(java.lang.String number)
getPages
public java.lang.String getPages()
setPages
public void setPages(java.lang.String pages)
getMonth
public java.lang.String getMonth()
setMonth
public void setMonth(java.lang.String month)
getDate
public java.lang.String getDate()
setDate
public void setDate(java.lang.String date)
getNote
public java.lang.String getNote()
setNote
public void setNote(java.lang.String note)
getAnnote
public java.lang.String getAnnote()
setAnnote
public void setAnnote(java.lang.String annote)
getPubtype
public java.lang.String getPubtype()
setPubtype
public void setPubtype(java.lang.String pubtype)
getISSN
public java.lang.String getISSN()
setISSN
public void setISSN(java.lang.String ISSN)
getAbstract
public java.lang.String getAbstract()
setAbstract
public void setAbstract(java.lang.String abst)
getAuthors
public java.util.Vector getAuthors()
getAllAuthors
public java.lang.String getAllAuthors(java.lang.String separator)
getAuthorCnt
public int getAuthorCnt()
getAuthor
public java.lang.String getAuthor(int idx)
addAuthor
public void addAuthor(java.lang.String k)
setAuthors
public void setAuthors(java.util.Vector Authors)
clearAuthors
public void clearAuthors()
getKeywords
public java.util.Vector getKeywords()
getAllKeywords
public java.lang.String getAllKeywords(java.lang.String separator)
getKeywordCnt
public int getKeywordCnt()
getKeyword
public java.lang.String getKeyword(int idx)
addKeyword
public void addKeyword(java.lang.String k)
setKeywords
public void setKeywords(java.util.Vector keywords)
clearKeywords
public void clearKeywords()
createEntryID
public void createEntryID()
createJournalElement
public org.w3c.dom.Element createJournalElement(org.w3c.dom.Document d)
outputBibtexEntry
public boolean outputBibtexEntry(java.io.Writer w)
throws java.io.IOException
oneBibtexLine
private static java.lang.String oneBibtexLine(java.lang.String tag,
java.lang.String field,
java.lang.String lastchar)