java.lang.Object
de.ipk_gatersleben.ag_nw.graffiti.plugins.databases.sib_enzymes.EnzClassEntry

public class EnzClassEntry
extends Object
Author:
klukas
  • Constructor Details

    • EnzClassEntry

      public EnzClassEntry​(EnzClassEntry template)
    • EnzClassEntry

      public EnzClassEntry​(String number1, String number2, String number3, String number4, String description)
      Parameters:
      number12 -
      number22 -
      number32 -
      number42 -
      description2 -
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getEnzClassEntry

      public static EnzClassEntry getEnzClassEntry​(String line)
      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

      public static boolean isValidEnzymeStart​(String line)
      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

      public boolean isValidMatchFor​(String ec_number)
      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

      public boolean isValidMatchFor_Inversed​(String ec_number)
      Parameters:
      id -
      Returns:
    • isValidMatchFor_Inversed

      public boolean isValidMatchFor_Inversed​(QuadNumber testNumber)