public class SimpleDocRef extends AbstractChangeable implements DocRef
| Modifier | Constructor and Description |
|---|---|
protected |
SimpleDocRef() |
|
SimpleDocRef(List<DocRefAuthor> authors,
String location)
Creates a new document reference from the given immutable authors and
location and title.
|
|
SimpleDocRef(List<DocRefAuthor> authors,
String location,
String title)
Creates a new document reference from the given immutable authors and
location and title.
|
|
SimpleDocRef(List authors,
String location,
String title,
String crossRefKey,
String crossRefValue,
Integer crossRefVersion)
Construct a doc ref with populated cross ref.
|
|
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.
|
|
SimpleDocRef(String authors,
String location,
String title,
String crossRefKey,
String crossRefValue,
Integer crossRefVersion)
Construct a doc ref with populated cross ref.
|
| Modifier and Type | Method and Description |
|---|---|
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<DocRefAuthor> |
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.
|
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"
|
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic SimpleDocRef(List<DocRefAuthor> authors, String location)
authors - The authors of the referenced document, as a set of DocRefAuthor instances.location - The location of the document, e.g. 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, e.g. the journal name and page range.title - The title of the document.public SimpleDocRef(List<DocRefAuthor> authors, String location, String title)
authors - The authors of the referenced document, as a set of DocRefAuthor instances.location - The location of the document, e.g. the journal name and page range.title - The title of the document.public SimpleDocRef(String authors, String location, String title, String crossRefKey, String crossRefValue, Integer crossRefVersion)
authors - location - title - crossRefKey - crossRefValue - crossRefVersion - public SimpleDocRef(List authors, String location, String title, String crossRefKey, String crossRefValue, Integer crossRefVersion)
authors - location - title - crossRefKey - crossRefValue - crossRefVersion - protected SimpleDocRef()
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<DocRefAuthor> getAuthorList()
getAuthorList in interface DocRefpublic String getCRC()
getCRC in interface DocRefCRC64Checksumpublic String getRemark()
public CrossRef getCrossref()
getCrossref in interface DocRefpublic String getLocation()
getLocation in interface DocRefpublic int compareTo(Object o)
compareTo in interface Comparablepublic boolean equals(Object obj)
public Integer getId()
Copyright © 2020 BioJava. All rights reserved.