@Internal public class PassingTypeValidator extends Object implements InputTypeValidator
Constructor and Description |
---|
PassingTypeValidator() |
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.
|
public ArgumentCount getArgumentCount()
InputTypeValidator
getArgumentCount
in interface InputTypeValidator
public boolean validate(CallContext callContext, boolean throwOnFailure)
InputTypeValidator
true
if the arguments are valid for the
given call, false
otherwise.validate
in interface InputTypeValidator
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
.public List<Signature> getExpectedSignatures(FunctionDefinition definition)
InputTypeValidator
getExpectedSignatures
in interface InputTypeValidator
definition
- the function definition that defines the function currently being called.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.