Class Validator


  • public abstract class Validator
    extends java.lang.Object
    Validator for ServiceParameters instances
    • Method Detail

      • validate

        public abstract void validate()
      • get

        protected java.util.List<com.complexible.stardog.plan.QueryTerm> get​(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 java.util.function.Consumer<IRI> oneOf​(Value... theValues)
      • oneOf

        protected java.util.function.Consumer<IRI> oneOf​(java.util.function.Consumer<IRI>... theValidators)
      • optional

        protected void optional​(IRI thePredicate,
                                java.util.function.Consumer<IRI> theValidator)
      • mandatory

        protected void mandatory​(IRI thePredicate,
                                 java.util.function.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