Enum Class SubstitutionStrategy
java.lang.Object
java.lang.Enum<SubstitutionStrategy>
org.aksw.jena_sparql_api.algebra.transform.SubstitutionStrategy
- All Implemented Interfaces:
Serializable,Comparable<SubstitutionStrategy>,Constable
Substitution strategy for constants in SPARQL graph patterns.
One of:
- RETAIN => do nothing
- SUBSTITUTE => substitute affected constant with a variable, but do NOT inject a filter to the constant
- SUSTITUTE_AND_FILTER => substitute affected constant with a variablbe and inject a filter statement that constraints the variable to the original value
- Author:
- raven
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRetain the value - suppress substitutionApply substitutionSubstitute and constrain to the original value -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanstatic SubstitutionStrategyReturns the enum constant of this class with the specified name.static SubstitutionStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RETAIN
Retain the value - suppress substitution -
SUBSTITUTE
Apply substitution -
SUBSTITUTE_AND_FILTER
Substitute and constrain to the original value
-
-
Field Details
-
substitute
protected boolean substitute -
injectFilter
protected boolean injectFilter
-
-
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
-
isSubstitute
public boolean isSubstitute() -
isInjectFilter
public boolean isInjectFilter()
-