uk.ac.ebi.intenz.domain.reference
Class Book

java.lang.Object
  extended by uk.ac.ebi.intenz.domain.reference.Reference
      extended by uk.ac.ebi.intenz.domain.reference.Book

public class Book
extends Reference

This class stores additional information about a book.

Instances of this class are immutable.

Version:
$Revision: 1.3 $ $Date: 2009/04/20 13:44:24 $
Author:
Michael Darsow

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

Book

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)
Returns a Book instance.

Parameters:
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.
Throws:
NullPointerException - if any paramter is null.
Method Detail

toString

public String toString()
Returns a string representation of this book.

Overrides:
toString in class Object
Returns:
the string representation.

equals

public boolean equals(Object o)
Standard equals() method.

Overrides:
equals in class Reference
Parameters:
o - The object to be compared to this one.
Returns:
true if o is equal to this object.

hashCode

public int hashCode()
Generates a hash code for this object.

Overrides:
hashCode in class Reference
Returns:
the hash code.

getFirstPage

public String getFirstPage()

getLastPage

public String getLastPage()

getEdition

public String getEdition(boolean formatted)
Returns the edition string as it is stored in the database or formatted.

Parameters:
formatted - true, if it should be formatted.
Returns:
the (formatted) edition string.

getEdition

public String getEdition()
Returns:
the formatted edition string.

getEditor

public String getEditor(boolean formatted)
Returns the editor string as it is stored in the database or formatted.

Parameters:
formatted - true, if it should be formatted.
Returns:
the (formatted) editor string.

getEditor

public String getEditor()
Returns:
The formatted editor string.

getPublisher

public String getPublisher()

getPublisherPlace

public String getPublisherPlace()

getPubName

public String getPubName()

getVolume

public String getVolume()

toXML

public String toXML(int number,
                    boolean intenzTextXML)
Overrides:
toXML in class Reference


Copyright © 2013 EMBL-EBI. All Rights Reserved.