de.zimek.proteinfeatures.protein
Class CathID

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

public class CathID
extends ID

Author:
Arthur Zimek

Field Summary
private  int architecture
           
static int ARCHITECTURE
           
static java.util.regex.Pattern CATH_HIERARCHY_SEPARATOR
           
static java.lang.String CATH_ID_SEPARATOR
           
static int CLASS
           
private  int classID
           
static int HOMOLOGOUS_SUPERFAMILY
           
private  int homologousSuperfamily
           
private  int topology
           
static int TOPOLOGY
           
 
Constructor Summary
CathID(java.lang.String cathID)
           
 
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.
 int getArchitecture()
           
 int getClassID()
           
 int getHomologousSuperFamily()
           
 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 getTopology()
           
 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

CATH_ID_SEPARATOR

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

CATH_HIERARCHY_SEPARATOR

public static final java.util.regex.Pattern CATH_HIERARCHY_SEPARATOR

CLASS

public static final int CLASS
See Also:
Constant Field Values

ARCHITECTURE

public static final int ARCHITECTURE
See Also:
Constant Field Values

TOPOLOGY

public static final int TOPOLOGY
See Also:
Constant Field Values

HOMOLOGOUS_SUPERFAMILY

public static final int HOMOLOGOUS_SUPERFAMILY
See Also:
Constant Field Values

classID

private int classID

architecture

private int architecture

topology

private int topology

homologousSuperfamily

private int homologousSuperfamily
Constructor Detail

CathID

public CathID(java.lang.String cathID)
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 int getClassID()
Returns:
int

getHomologousSuperFamily

public int getHomologousSuperFamily()
Returns:
int

getArchitecture

public int getArchitecture()
Returns:
int

getTopology

public int getTopology()
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()