@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()
InputTypeValidatorgetArgumentCount in interface InputTypeValidatorpublic boolean validate(CallContext callContext, boolean throwOnFailure)
InputTypeValidatortrue if the arguments are valid for the
given call, false otherwise.validate in interface InputTypeValidatorcallContext - 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)
InputTypeValidatorgetExpectedSignatures in interface InputTypeValidatordefinition - the function definition that defines the function currently being called.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.