Class Validator
- java.lang.Object
-
- com.complexible.stardog.plan.eval.service.Validator
-
public abstract class Validator extends java.lang.Object
Validator forServiceParameters
instances
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Validator(ServiceParameters theParameters)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
contains(IRI thePredicate)
protected void
deprecated(IRI theDeprecatedPredicate, IRI theNewPredicate)
Assert that deprecated predicate is not being usedprotected void
exclusiveQueryTerms(IRI theFirstPredicate, IRI theSecondPredicate)
Assert that given predicates don't share query termsprotected java.util.List<com.complexible.stardog.plan.QueryTerm>
get(IRI thePredicate)
protected void
invalidPredicates()
Assert thatServiceParameters
contains no other predicates besides the ones used for validationprotected void
mandatory(IRI thePredicate, java.util.function.Consumer<IRI> theValidator)
protected void
multipleConstants(IRI thePredicate)
protected void
multipleIRIs(IRI thePredicate)
protected void
multipleLiterals(IRI thePredicate)
protected void
multipleResources(IRI thePredicate)
protected void
multipleTerms(IRI thePredicate)
protected void
multipleVariables(IRI thePredicate)
protected void
namedArguments(IRI thePredicate)
protected java.util.function.Consumer<IRI>
oneOf(Value... theValues)
protected java.util.function.Consumer<IRI>
oneOf(java.util.function.Consumer<IRI>... theValidators)
protected void
optional(IRI thePredicate, java.util.function.Consumer<IRI> theValidator)
protected void
singleBoolean(IRI theKey)
protected void
singleConstant(IRI thePredicate)
protected void
singleInteger(IRI theKey)
protected void
singleIRI(IRI thePredicate)
protected void
singleLiteral(IRI thePredicate)
protected void
singleNumber(IRI theKey)
protected void
singleTerm(IRI thePredicate)
protected void
singleVariable(IRI thePredicate)
protected java.util.Optional<ServiceParameters>
sub(IRI thePredicate)
abstract void
validate()
-
-
-
Constructor Detail
-
Validator
protected Validator(ServiceParameters theParameters)
-
-
Method Detail
-
validate
public abstract void validate()
-
get
protected java.util.List<com.complexible.stardog.plan.QueryTerm> get(IRI thePredicate)
-
sub
protected java.util.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 java.util.function.Consumer<IRI> oneOf(java.util.function.Consumer<IRI>... theValidators)
-
mandatory
protected void mandatory(IRI thePredicate, java.util.function.Consumer<IRI> theValidator)
-
invalidPredicates
protected void invalidPredicates()
Assert thatServiceParameters
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
-
-