DocumentTypeFunctionCallValidator
class DocumentTypeFunctionCallValidator<T : OutputValue<*>>(allowedTypes: Iterable<DocumentType>) : FunctionCallValidator<T>
Validator of a function call that checks if the document the function call lies in is of a certain type. If not, an InvalidFunctionCallException is thrown.
Parameters
allowedTypes
allowed document types
Type Parameters
T
output type of the function