java.lang.Object
com.complexible.stardog.plan.eval.service.Validator

public abstract class Validator extends Object
Validator for ServiceParameters instances
  • Constructor Details

  • Method Details

    • validate

      public abstract void validate()
    • get

      protected List<com.complexible.stardog.plan.QueryTerm> get(IRI thePredicate)
    • sub

      protected Optional<ServiceParameters> sub(IRI thePredicate)
    • contains

      protected boolean contains(IRI thePredicate)
    • singleTerm

      protected void singleTerm(IRI thePredicate)
    • singleVariable

      protected void singleVariable(IRI thePredicate)
    • multipleVariables

      protected void multipleVariables(IRI thePredicate)
    • multipleTerms

      protected void multipleTerms(IRI thePredicate)
    • singleConstant

      protected void singleConstant(IRI thePredicate)
    • multipleConstants

      protected void multipleConstants(IRI thePredicate)
    • multipleResources

      protected void multipleResources(IRI thePredicate)
    • multipleLiterals

      protected void multipleLiterals(IRI thePredicate)
    • multipleIRIs

      protected void multipleIRIs(IRI thePredicate)
    • singleLiteral

      protected void singleLiteral(IRI thePredicate)
    • singleNumber

      protected void singleNumber(IRI theKey)
    • singleInteger

      protected void singleInteger(IRI theKey)
    • singleBoolean

      protected void singleBoolean(IRI theKey)
    • singleIRI

      protected void singleIRI(IRI thePredicate)
    • namedArguments

      protected void namedArguments(IRI thePredicate)
    • oneOf

      protected Consumer<IRI> oneOf(Value... theValues)
    • oneOf

      protected Consumer<IRI> oneOf(Consumer<IRI>... theValidators)
    • optional

      protected void optional(IRI thePredicate, Consumer<IRI> theValidator)
    • mandatory

      protected void mandatory(IRI thePredicate, Consumer<IRI> theValidator)
    • invalidPredicates

      protected void invalidPredicates()
      Assert that ServiceParameters contains no other predicates besides the ones used for validation
    • exclusiveQueryTerms

      protected void exclusiveQueryTerms(IRI theFirstPredicate, IRI theSecondPredicate)
      Assert that given predicates don't share query terms
    • deprecated

      protected void deprecated(IRI theDeprecatedPredicate, IRI theNewPredicate)
      Assert that deprecated predicate is not being used