Class EnzClassEntry
java.lang.Object
de.ipk_gatersleben.ag_nw.graffiti.plugins.databases.sib_enzymes.EnzClassEntry
public class EnzClassEntry extends Object
- Author:
- klukas
-
Constructor Summary
Constructors Constructor Description EnzClassEntry(EnzClassEntry template)
EnzClassEntry(String number1, String number2, String number3, String number4, String description)
-
Method Summary
Modifier and Type Method Description static EnzClassEntry
getEnzClassEntry(String line)
static boolean
isValidEnzymeStart(String line)
Determines if a given line is a valid start for a enzyme class entry.boolean
isValidMatchFor(String ec_number)
If a entry is the same as the given, true is returned.boolean
isValidMatchFor_Inversed(QuadNumber testNumber)
boolean
isValidMatchFor_Inversed(String ec_number)
String
toString()
-
Constructor Details
-
Method Details
-
toString
-
getEnzClassEntry
- Parameters:
line
- A enzyme class entry, e.g. "1. 1. 5.- weiterer Text." The format is anum.bnum.cnum.dnum[space]description each number is either a "-" or a number. Spaces are removed for this part. The numbers are divided with the description by two or more spaces. The last point (which must be existent!) is removed autmatically be this constructor.
-
isValidEnzymeStart
Determines if a given line is a valid start for a enzyme class entry. Example for a valid entry: " 6. 3. 1.-"- Parameters:
line
-- Returns:
- True, if the line (and possibily following lines) should be treated as a enzyme entry. Fals, if this is a comment or anything other.
-
isValidMatchFor
If a entry is the same as the given, true is returned. The entry may contain "-", but then the entry must be same for this number. The other way around, if the object contains some "-" any number can be given for this entry, the match will be valid. Object="1.2.-.-" => ec_number "1.2.3.4" will match. Reversed this is not true.- Parameters:
ec_number
-- Returns:
- True, if the given ec_number is a valid match for the category, this object instance represents.
-
isValidMatchFor_Inversed
- Parameters:
id
-- Returns:
-
isValidMatchFor_Inversed
-