|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EcNumber
An ec (enzyme classification) number. Implementations of this interface should be imutable. This makes them much more usefull as keys in maps. it is a good idea to validate that the data being passed in is a sane ec number.
Nested Class Summary | |
---|---|
static class |
EcNumber.Impl
A simple implementation of EcNumber. |
Field Summary | |
---|---|
static java.util.regex.Pattern |
EC_PATTERN
A Pattern that can be used to parse EC strings into the indiidual numbers. |
static int |
UNCLASSIFIED
Constant that represents EC number components that are as yet unclassified. |
static int |
UNDEFINED
Constant that represents EC number components that are not defined. |
Method Summary | |
---|---|
int |
getClassNumber(int level)
Get the class number associated with the particular level of the ec number. |
Field Detail |
---|
static final java.util.regex.Pattern EC_PATTERN
static final int UNDEFINED
static final int UNCLASSIFIED
Method Detail |
---|
int getClassNumber(int level)
The index can be between 0 and 3 inclusive. 0 correxpons to the top level class, 1 to the sub-class and so on. A return value of UNDEFINED indicates that this field is not populated.
level
- the level in the ec classification to return the number for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |