Class Validator
- java.lang.Object
-
- com.complexible.stardog.plan.eval.service.Validator
-
public abstract class Validator extends java.lang.ObjectValidator forServiceParametersinstances
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedValidator(ServiceParameters theParameters)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleancontains(IRI thePredicate)protected voiddeprecated(IRI theDeprecatedPredicate, IRI theNewPredicate)Assert that deprecated predicate is not being usedprotected voidexclusiveQueryTerms(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 voidinvalidPredicates()Assert thatServiceParameterscontains no other predicates besides the ones used for validationprotected voidmandatory(IRI thePredicate, java.util.function.Consumer<IRI> theValidator)protected voidmultipleConstants(IRI thePredicate)protected voidmultipleIRIs(IRI thePredicate)protected voidmultipleResources(IRI thePredicate)protected voidmultipleTerms(IRI thePredicate)protected voidmultipleVariables(IRI thePredicate)protected voidnamedArguments(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 voidoptional(IRI thePredicate, java.util.function.Consumer<IRI> theValidator)protected voidsingleBoolean(IRI theKey)protected voidsingleConstant(IRI thePredicate)protected voidsingleInteger(IRI theKey)protected voidsingleIRI(IRI thePredicate)protected voidsingleLiteral(IRI thePredicate)protected voidsingleNumber(IRI theKey)protected voidsingleTerm(IRI thePredicate)protected voidsingleVariable(IRI thePredicate)protected java.util.Optional<ServiceParameters>sub(IRI thePredicate)abstract voidvalidate()
-
-
-
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)
-
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 thatServiceParameterscontains 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
-
-