Enum Class Formats

java.lang.Object
java.lang.Enum<Formats>
fr.metabocloud.core.models.enums.Formats
All Implemented Interfaces:
Serializable, Comparable<Formats>, Constable

public enum Formats extends Enum<Formats>
Enumeration representing format that may be used by the application.

This enum centralizes common formats between several applications.

  • Enum Constant Details

    • INCHI

      public static final Formats INCHI
      InChI format
    • INCHIKEY

      public static final Formats INCHIKEY
      InChI key format
    • MOL

      public static final Formats MOL
      MOL format
    • SDF

      public static final Formats SDF
      SDF format
    • PNG

      public static final Formats PNG
      PNG format
    • SVG

      public static final Formats SVG
      SVG format
  • Field Details

    • label

      public final String label
      The message label representing the information.
  • Method Details

    • values

      public static Formats[] 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 Formats 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