|
||||||||||
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. |
|
SimpleDocRef(String authors,
String location)
Creates a new document reference from the given immutable authors and location and title. |
|
SimpleDocRef(String 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. |
Integer |
getId()
Gets the Hibernate ID. |
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 |
setId(Integer id)
Sets the Hibernate ID. |
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(String authors, String location)
authors
- The authors of the referenced document, as a string to be parsed
with DocRefAuthor.Tools.parseAuthorString(String)
.location
- The location of the document, eg. the journal name and page range.public SimpleDocRef(String authors, String location, String title)
authors
- The authors of the referenced document, as a string to be parsed
with DocRefAuthor.Tools.parseAuthorString(String)
.location
- The location of the document, eg. the journal name and page range.title
- The title of the document.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 DocRef
remark
- New value of property Remark.
ChangeVetoException
- in case of objections.public void setCrossref(CrossRef crossref) throws ChangeVetoException
setCrossref
in interface DocRef
crossref
- New value of property crossref.
ChangeVetoException
- in case of objections.public String getAuthors()
getAuthors
in interface DocRef
public List getAuthorList()
getAuthorList
in interface DocRef
public String getCRC()
getCRC
in interface DocRef
CRC64Checksum
public String getRemark()
getRemark
in interface DocRef
public CrossRef getCrossref()
getCrossref
in interface DocRef
public String getLocation()
getLocation
in interface DocRef
public String getTitle()
getTitle
in interface DocRef
public int compareTo(Object o)
compareTo
in interface Comparable
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public Integer getId()
public void setId(Integer id)
id
- the Hibernate ID, if using Hibernate.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |