org.biojava.bio.structure.scop
Class ScopDescription

java.lang.Object
  extended by org.biojava.bio.structure.scop.ScopDescription
All Implemented Interfaces:
Serializable, Cloneable

public class ScopDescription
extends Object
implements Serializable, Cloneable

Contains data from dir.des.scop.txt_1.75

e.g

 SunID  Cat     Class           Name    Description
 -----  ---     -----           ----    -----------
 26154  px      b.47.1.2        d1nrs.1 1nrs L:,H:
 125030 px      b.47.1.2        d1zgia1 1zgi A:1A-245
 

Author:
Andreas Prlic
See Also:
Serialized Form

Constructor Summary
ScopDescription()
           
 
Method Summary
protected  Object clone()
           
 boolean equals(Object obj)
          Compares the fields sunID, category, classificationId, and name for equality
 ScopCategory getCategory()
           
 String getClassificationId()
           
 String getClassificationId(ScopCategory category)
          Return a portion of the classificationID corresponding to the specified category (class, fold, superfamily, family).
 String getDescription()
           
 String getName()
           
 int getSunID()
           
 int hashCode()
           
 void setCategory(ScopCategory category)
           
 void setClassificationId(String classificationId)
           
 void setDescription(String description)
           
 void setName(String name)
           
 void setSunID(int sunID)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScopDescription

public ScopDescription()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getSunID

public int getSunID()

setSunID

public void setSunID(int sunID)

getCategory

public ScopCategory getCategory()

setCategory

public void setCategory(ScopCategory category)

getClassificationId

public String getClassificationId()

setClassificationId

public void setClassificationId(String classificationId)

getName

public String getName()

setName

public void setName(String name)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getClassificationId

public String getClassificationId(ScopCategory category)
Return a portion of the classificationID corresponding to the specified category (class, fold, superfamily, family).

Example: for SCOP family "b.5.1.1", getClassificationId(ScopCategory.Superfamily) => "b.5.1"


hashCode

public int hashCode()
Overrides:
hashCode in class Object
Returns:
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Compares the fields sunID, category, classificationId, and name for equality

Overrides:
equals in class Object
Parameters:
obj -
Returns:
See Also:
Object.equals(java.lang.Object)

clone

protected Object clone()
                throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException