Enum Class PredicateModifier

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

public enum PredicateModifier extends Enum<PredicateModifier>
A value that modifies the meaning of a mapping predicate. Currently the only defined modifier is NOT, which negates the predicate.
  • Enum Constant Details

  • Method Details

    • values

      public static PredicateModifier[] 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 PredicateModifier 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<PredicateModifier>
    • getIRI

      public String getIRI()
      Gets the IRI associated with the enum value.
      Returns:
      The IRI used to represent the enum value, if any (may be null).
    • fromString

      public static PredicateModifier fromString(String v)
      Parses a string into a predicate modifier.
      Parameters:
      v - The string to parse.
      Returns:
      The corresponding predicate modifier, of null if the provided string does not match any predicate modifier.
    • fromIRI

      public static PredicateModifier fromIRI(String iri)
      Parses an IRI into the corresponding predicate modifier value.
      Parameters:
      iri - The IRI to parse.
      Returns:
      The corresponding enumeration value, or null if the provided IRI does not match any predicate modifier.