public class PortfolioInstructionExecutor extends Object implements CollectionBasedInstructionExecutor
Instruction
s which are internal to the jadice documentplatform -- those it
has in its portfolio by default. Note that these executors are sufficient to handle all
intra-document instructions (page change, fit, zoom) which are produced by document reading
processes.Constructor and Description |
---|
PortfolioInstructionExecutor() |
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute(Instruction instruction,
Collection<Object> context)
Indicates whether or not this instance is able to execute the given
Instruction , using
the given context object where necessary. |
void |
execute(Instruction instruction,
Collection<Object> context)
Perform that which is described by the given
Instruction . |
boolean |
pertainsTo(Class<? extends Instruction> clazz)
Returns whether or not this
InstructionExecutor knows how to deal with a given type of
Instruction . |
public boolean pertainsTo(Class<? extends Instruction> clazz)
InstructionExecutor
InstructionExecutor
knows how to deal with a given type of
Instruction
.pertainsTo
in interface InstructionExecutor<Collection<Object>>
clazz
- the type of Instruction
for which information is requestedtrue
if this InstructionExecutor
is able to handle
Instruction
s of the given type, false
otherwise.public boolean canExecute(Instruction instruction, Collection<Object> context)
InstructionExecutor
Instruction
, using
the given context object where necessary.canExecute
in interface InstructionExecutor<Collection<Object>>
instruction
- the instruction in questioncontext
- holds additional, implementation-specific informationtrue
if this instance is able to execute the given Instruction
using the given context object where necessary; false
otherwise.public void execute(Instruction instruction, Collection<Object> context)
InstructionExecutor
Instruction
.execute
in interface InstructionExecutor<Collection<Object>>
instruction
- holds the information which specifies what to performcontext
- holds additional, implementation-specific informationCopyright © 2024 levigo holding gmbh. All rights reserved.