public class ValidateHandler extends Object implements OutputOperationHandler<Validate,Iterable<? extends Element>>
ValidateHandler
handles for Validate
operations.
Takes an Iterable
of Element
s and returns an
Iterable
containing only valid Element
s, specifically an instance of ValidatedElements
.
The Schema
is used to validate the elements.
The isSkipInvalidElements flag on Validate
is used to determine what to do with invalid Element
s.Constructor and Description |
---|
ValidateHandler() |
Modifier and Type | Method and Description |
---|---|
Iterable<? extends Element> |
doOperation(Validate operation,
Context context,
Store store)
Execute the given
Output operation. |
Iterable<? extends Element> |
doOperation(Validate operation,
Schema schema) |
public Iterable<? extends Element> doOperation(Validate operation, Context context, Store store) throws OperationException
OutputOperationHandler
Output
operation.doOperation
in interface OperationHandler<Validate>
doOperation
in interface OutputOperationHandler<Validate,Iterable<? extends Element>>
operation
- the Output
operation to be executedcontext
- the operation chain context, containing the user who executed the operationstore
- the Store
the operation should be run onOperationException
- thrown if the operation failsCopyright © 2022. All rights reserved.