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, removeChangeListener
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public 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 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<DocRefAuthor> getAuthorList()
getAuthorList
in interface DocRef
public String getCRC()
getCRC
in interface DocRef
CRC64Checksum
public String getRemark()
public CrossRef getCrossref()
getCrossref
in interface DocRef
public String getLocation()
getLocation
in interface DocRef
public int compareTo(Object o)
compareTo
in interface Comparable
public boolean equals(Object obj)
public Integer getId()
Copyright © 2014 BioJava. All rights reserved.