Enum Class ModificationCategory

java.lang.Object
java.lang.Enum<ModificationCategory>
org.biojava.nbio.protmod.ModificationCategory
All Implemented Interfaces:
Serializable, Comparable<ModificationCategory>, Constable

public enum ModificationCategory extends Enum<ModificationCategory>
define modification categories.
Since:
3.0
Author:
Jianjiong Gao
  • Enum Constant Details

  • Method Details

    • values

      public static ModificationCategory[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ModificationCategory valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • label

      public String label()
      Returns:
      the label of this ModificationCategory.
    • description

      public String description()
      Returns:
      the description
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ModificationCategory>
      Returns:
      the label of this ModificationCategory.
    • isCrossLink

      public boolean isCrossLink()
      Returns:
      true if it is a CrossLink; false, otherwise.
    • getByLabel

      public static ModificationCategory getByLabel(String label)
      Parameters:
      label - the label of ModificationCategory.
      Returns:
      the ModificationCategory that has the label.