Enum Class MappingJustification

java.lang.Object
java.lang.Enum<MappingJustification>
org.incenp.obofoundry.sssom.model.MappingJustification
All Implemented Interfaces:
Serializable, Comparable<MappingJustification>, Constable

public enum MappingJustification extends Enum<MappingJustification>
The allowed values in the mapping_justification slot.

Strictly speaking, the mapping_justification is not enum-typed, but in effect it is only supposed to accept a handful of values from the SEMAPV vocabulary, which are represented by this enumeration.

  • Enum Constant Details

  • Method Details

    • values

      public static MappingJustification[] 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 MappingJustification 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
    • getVersion

      public Version getVersion()
      The version of the SSSOM specification in which this value was first introduced.
      Returns:
      The minimal version of SSSOM this value is compliant with.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<MappingJustification>
    • fromString

      public static MappingJustification fromString(String v)
      Parses a string into a mapping justification enum value.
      Parameters:
      v - The string to parse.
      Returns:
      The corresponding enumeration value, or null if the provided string does not match any of the allowed values.