|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.utils.AbstractChangeable
org.biojavax.SimpleDocRef
public class SimpleDocRef
A basic DocRef implementation.
| Field Summary |
|---|
| Fields inherited from interface org.biojavax.DocRef |
|---|
CROSSREF, REMARK |
| Constructor Summary | |
|---|---|
protected |
SimpleDocRef()
|
|
SimpleDocRef(List authors,
String location)
Creates a new document reference from the given immutable authors and location and title. |
|
SimpleDocRef(List authors,
String location,
String title)
Creates a new document reference from the given immutable authors and location and title. |
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Document references are compared first by author, then by location, then by title. |
boolean |
equals(Object obj)
Document references are equal if they have the same author and location and title. |
List |
getAuthorList()
Returns the authors of the document reference as a set of DocRefAuthor implementation instances. |
String |
getAuthors()
Returns the authors of the document reference. |
String |
getCRC()
Returns a CRC64 checksum of this document reference, allowing for easy comparisons with other document references. The string to be checksummed is constructed by concatenating the authors, title, and location in that order, with no space between. |
CrossRef |
getCrossref()
The document reference may refer to an object in another database. |
String |
getLocation()
Returns a textual description of the document reference. |
String |
getRemark()
If remarks have been made about this document reference, this method will return them. |
String |
getTitle()
Returns the title of the document reference. |
int |
hashCode()
|
void |
setCrossref(CrossRef crossref)
The document reference may refer to an object in another database. |
void |
setRemark(String remark)
Set the remarks for this document reference using this method. |
String |
toString()
Form: "authors; location" |
| Methods inherited from class org.biojava.utils.AbstractChangeable |
|---|
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.biojava.utils.Changeable |
|---|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
| Constructor Detail |
|---|
public SimpleDocRef(List authors,
String location)
authors - The authors of the referenced document, as a set of DocRefAuthor instances.location - The location of the document, eg. the journal name and page range.
public SimpleDocRef(List authors,
String location,
String title)
authors - The authors of the referenced document, as a set of DocRefAuthor instances.location - The location of the document, eg. the journal name and page range.title - The title of the document.protected SimpleDocRef()
| Method Detail |
|---|
public void setRemark(String remark)
throws ChangeVetoException
setRemark in interface DocRefremark - New value of property Remark.
ChangeVetoException - in case of objections.
public void setCrossref(CrossRef crossref)
throws ChangeVetoException
setCrossref in interface DocRefcrossref - New value of property crossref.
ChangeVetoException - in case of objections.public String getAuthors()
getAuthors in interface DocRefpublic List getAuthorList()
getAuthorList in interface DocRefpublic String getCRC()
getCRC in interface DocRefCRC64Checksumpublic String getRemark()
getRemark in interface DocRefpublic CrossRef getCrossref()
getCrossref in interface DocRefpublic String getLocation()
getLocation in interface DocRefpublic String getTitle()
getTitle in interface DocRefpublic int compareTo(Object o)
compareTo in interface Comparablepublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||