de.zimek.proteinfeatures.protein
Class ScopID

java.lang.Object
  extended byde.zimek.proteinfeatures.protein.ID
      extended byde.zimek.proteinfeatures.protein.ScopID
All Implemented Interfaces:
java.lang.Comparable

public class ScopID
extends ID

Author:
Arthur Zimek

Field Summary
static int CLASS
           
private  char classID
           
private  int family
           
static int FAMILY
           
private  int fold
           
static int FOLD
           
static java.util.regex.Pattern SCOP_HIERARCHY_SEPARATOR
           
static java.lang.String SCOP_ID_SEPARATOR
           
private  int superfamily
           
static int SUPERFAMILY
           
 
Constructor Summary
ScopID(java.lang.String scopID)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 ID createID(java.lang.String id)
          Returns a new ID for the given id-String.
 boolean equals(java.lang.Object o)
          Returns true, if the ID equals another ID at all levels, false otherwise.
 char getClassID()
           
 int getFamily()
           
 int getFold()
           
 java.lang.String getID(int level)
          Returns the ID for the first level levels.
 int getLevel(int level)
          Returns the id-value in the specified level.
 int getSuperfamily()
           
 java.lang.String toString()
          Provides a String-representation for the ID.
 java.lang.String type()
          Returns a String describing the type of the ID.
 
Methods inherited from class de.zimek.proteinfeatures.protein.ID
hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SCOP_ID_SEPARATOR

public static final java.lang.String SCOP_ID_SEPARATOR
See Also:
Constant Field Values

SCOP_HIERARCHY_SEPARATOR

public static final java.util.regex.Pattern SCOP_HIERARCHY_SEPARATOR

CLASS

public static final int CLASS
See Also:
Constant Field Values

FOLD

public static final int FOLD
See Also:
Constant Field Values

SUPERFAMILY

public static final int SUPERFAMILY
See Also:
Constant Field Values

FAMILY

public static final int FAMILY
See Also:
Constant Field Values

classID

private char classID

fold

private int fold

superfamily

private int superfamily

family

private int family
Constructor Detail

ScopID

public ScopID(java.lang.String scopID)
Method Detail

toString

public java.lang.String toString()
Description copied from class: ID
Provides a String-representation for the ID.

Specified by:
toString in class ID
See Also:
Object.toString()

getID

public java.lang.String getID(int level)
Description copied from class: ID
Returns the ID for the first level levels.

Specified by:
getID in class ID
Parameters:
level -
Returns:
String

equals

public boolean equals(java.lang.Object o)
Description copied from class: ID
Returns true, if the ID equals another ID at all levels, false otherwise.

Specified by:
equals in class ID
See Also:
Object.equals(Object)

compareTo

public int compareTo(java.lang.Object o)
See Also:
Comparable.compareTo(java.lang.Object)

getClassID

public char getClassID()
Returns:
char

getFamily

public int getFamily()
Returns:
int

getFold

public int getFold()
Returns:
int

getSuperfamily

public int getSuperfamily()
Returns:
int

getLevel

public int getLevel(int level)
Description copied from class: ID
Returns the id-value in the specified level.

Specified by:
getLevel in class ID
Parameters:
level -
Returns:
int

createID

public ID createID(java.lang.String id)
Description copied from class: ID
Returns a new ID for the given id-String.

Specified by:
createID in class ID
Parameters:
id -
Returns:
ID
See Also:
ID.createID(String)

type

public java.lang.String type()
Description copied from class: ID
Returns a String describing the type of the ID.

Specified by:
type in class ID
Returns:
String
See Also:
ID.type()