Enum Class PredicateModifier
- All Implemented Interfaces:
Serializable
,Comparable<PredicateModifier>
,Constable
A value that modifies the meaning of a mapping predicate. Currently the only
defined modifier is
NOT
, which negates the predicate.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic PredicateModifier
Parses an IRI into the corresponding predicate modifier value.static PredicateModifier
fromString
(String v) Parses a string into a predicate modifier.getIRI()
Gets the IRI associated with the enum value.toString()
static PredicateModifier
Returns the enum constant of this class with the specified name.static PredicateModifier[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<PredicateModifier>
-
getIRI
Gets the IRI associated with the enum value.- Returns:
- The IRI used to represent the enum value, if any (may be
null
).
-
fromString
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
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.
-