public class SimpleDocRef extends AbstractChangeable implements DocRef
| Modifier | Constructor and Description |
|---|---|
protected |
SimpleDocRef() |
|
SimpleDocRef(java.util.List authors,
java.lang.String location)
Creates a new document reference from the given immutable authors and
location and title.
|
|
SimpleDocRef(java.util.List authors,
java.lang.String location,
java.lang.String title)
Creates a new document reference from the given immutable authors and
location and title.
|
|
SimpleDocRef(java.lang.String authors,
java.lang.String location)
Creates a new document reference from the given immutable authors and
location and title.
|
|
SimpleDocRef(java.lang.String authors,
java.lang.String location,
java.lang.String title)
Creates a new document reference from the given immutable authors and
location and title.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o)
Document references are compared first by author, then by location, then
by title.
|
boolean |
equals(java.lang.Object obj)
Document references are equal if they have the same author and location and title.
|
java.util.List |
getAuthorList()
Returns the authors of the document reference as a set of DocRefAuthor
implementation instances.
|
java.lang.String |
getAuthors()
Returns the authors of the document reference.
|
java.lang.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.
|
java.lang.Integer |
getId()
Gets the Hibernate ID.
|
java.lang.String |
getLocation()
Returns a textual description of the document reference.
|
java.lang.String |
getRemark()
If remarks have been made about this document reference, this method
will return them.
|
java.lang.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(java.lang.Integer id)
Sets the Hibernate ID.
|
void |
setRemark(java.lang.String remark)
Set the remarks for this document reference using this method.
|
java.lang.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(java.util.List authors,
java.lang.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(java.lang.String authors,
java.lang.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(java.lang.String authors,
java.lang.String location,
java.lang.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(java.util.List authors,
java.lang.String location,
java.lang.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()
public void setRemark(java.lang.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 java.lang.String getAuthors()
getAuthors in interface DocRefpublic java.util.List getAuthorList()
getAuthorList in interface DocRefpublic java.lang.String getCRC()
getCRC in interface DocRefCRC64Checksumpublic java.lang.String getRemark()
public CrossRef getCrossref()
getCrossref in interface DocRefpublic java.lang.String getLocation()
getLocation in interface DocRefpublic java.lang.String getTitle()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Integer getId()
public void setId(java.lang.Integer id)
id - the Hibernate ID, if using Hibernate.