|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ebi.intenz.domain.reference.Reference
uk.ac.ebi.intenz.domain.reference.Book
public class Book
This class stores additional information about a book.
Instances of this class are immutable.
Constructor Summary | |
---|---|
Book(Long id,
String authors,
String title,
String year,
String firstPage,
String lastPage,
String pubName,
String edition,
String editor,
String volume,
String publisher,
String publisherPlace,
EnzymeViewConstant view,
EnzymeSourceConstant source)
Returns a Book instance. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Standard equals() method. |
String |
getEdition()
|
String |
getEdition(boolean formatted)
Returns the edition string as it is stored in the database or formatted. |
String |
getEditor()
|
String |
getEditor(boolean formatted)
Returns the editor string as it is stored in the database or formatted. |
String |
getFirstPage()
|
String |
getLastPage()
|
String |
getPublisher()
|
String |
getPublisherPlace()
|
String |
getPubName()
|
String |
getVolume()
|
int |
hashCode()
Generates a hash code for this object. |
String |
toString()
Returns a string representation of this book. |
String |
toXML(int number,
boolean intenzTextXML)
|
Methods inherited from class uk.ac.ebi.intenz.domain.reference.Reference |
---|
getAuthors, getPubId, getSource, getTitle, getView, getYear |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Book(Long id, String authors, String title, String year, String firstPage, String lastPage, String pubName, String edition, String editor, String volume, String publisher, String publisherPlace, EnzymeViewConstant view, EnzymeSourceConstant source)
Book
instance.
id
- The pubId.authors
- String containing all author names.title
- The title of the publication.year
- The year of the publication.firstPage
- The first page of the publication in the book.lastPage
- The last page of the publication in the book.pubName
- The name of the book.edition
- The edition.editor
- The editor(s).volume
- The book's volume.publisher
- The company that published this book.publisherPlace
- The place of the company.
NullPointerException
- if any paramter is null
.Method Detail |
---|
public String toString()
toString
in class Object
public boolean equals(Object o)
equals()
method.
equals
in class Reference
o
- The object to be compared to this one.
true
if o
is equal to this object.public int hashCode()
hashCode
in class Reference
public String getFirstPage()
public String getLastPage()
public String getEdition(boolean formatted)
formatted
- true
, if it should be formatted.
public String getEdition()
public String getEditor(boolean formatted)
formatted
- true
, if it should be formatted.
public String getEditor()
public String getPublisher()
public String getPublisherPlace()
public String getPubName()
public String getVolume()
public String toXML(int number, boolean intenzTextXML)
toXML
in class Reference
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |