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

public enum SubstitutionStrategy extends Enum<SubstitutionStrategy>
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
  • Enum Constant Details

    • RETAIN

      public static final SubstitutionStrategy RETAIN
      Retain the value - suppress substitution
    • SUBSTITUTE

      public static final SubstitutionStrategy SUBSTITUTE
      Apply substitution
    • SUBSTITUTE_AND_FILTER

      public static final SubstitutionStrategy SUBSTITUTE_AND_FILTER
      Substitute and constrain to the original value
  • Field Details

    • substitute

      protected boolean substitute
    • injectFilter

      protected boolean injectFilter
  • Method Details

    • values

      public static SubstitutionStrategy[] 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 SubstitutionStrategy 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
    • isSubstitute

      public boolean isSubstitute()
    • isInjectFilter

      public boolean isInjectFilter()