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

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

public class Patent
extends Reference

This class stores additional information about patents.

Instances of this class are immutable.

Version:
$Revision: 1.2 $ $Date: 2008/01/28 12:33:10 $
Author:
Michael Darsow

Constructor Summary
Patent(Long id, String authors, String title, String year, String patentNumber, EnzymeViewConstant view, EnzymeSourceConstant source)
          Returns a Patent instance.
 
Method Summary
 boolean equals(Object o)
          Standard equals() method.
 String getPatentNumber()
           
 int hashCode()
          Generates a hash code for this object.
 String toString()
          Returns a string representation of this patent.
 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

Patent

public Patent(Long id,
              String authors,
              String title,
              String year,
              String patentNumber,
              EnzymeViewConstant view,
              EnzymeSourceConstant source)
Returns a Patent instance.

Parameters:
id - The pubId
authors - String containing all author names.
title - The title of the publication.
year - The year of the publication.
patentNumber - The patent number.
Method Detail

toString

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

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.

getPatentNumber

public String getPatentNumber()

toXML

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


Copyright © 2013 EMBL-EBI. All Rights Reserved.