Enum PredicateModifier
- java.lang.Object
-
- java.lang.Enum<PredicateModifier>
-
- org.incenp.obofoundry.sssom.model.PredicateModifier
-
- All Implemented Interfaces:
Serializable,Comparable<PredicateModifier>
public enum PredicateModifier extends Enum<PredicateModifier>
A value that modifies the meaning of a mapping predicate. Currently the only defined modifier isNOT, which negates the predicate.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PredicateModifierfromIRI(String iri)Parses an IRI into the corresponding predicate modifier value.static PredicateModifierfromString(String v)Parses a string into a predicate modifier.StringgetIRI()Gets the IRI associated with the enum value.StringtoString()static PredicateModifiervalueOf(String name)Returns the enum constant of this type with the specified name.static PredicateModifier[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT
public static final PredicateModifier NOT
-
-
Method Detail
-
values
public static PredicateModifier[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PredicateModifier c : PredicateModifier.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PredicateModifier valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<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
nullif 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
nullif the provided IRI does not match any predicate modifier.
-
-