@PublicEvolving public interface InputTypeValidator
InputTypeValidators
Modifier and Type | Method and Description |
---|---|
ArgumentCount |
getArgumentCount()
Initial input validation based on the number of arguments.
|
List<Signature> |
getExpectedSignatures(FunctionDefinition definition)
Returns a summary of the function's expected signatures.
|
boolean |
validate(CallContext callContext,
boolean throwOnFailure)
Main logic for validating the input.
|
ArgumentCount getArgumentCount()
boolean validate(CallContext callContext, boolean throwOnFailure)
true
if the arguments are valid for the
given call, false
otherwise.callContext
- provides details about the function callthrowOnFailure
- whether this function is allowed to throw an ValidationException
with a meaningful exception in case the validation is not successful or
if this function should simple return false
.List<Signature> getExpectedSignatures(FunctionDefinition definition)
definition
- the function definition that defines the function currently being called.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.