| org.jicengine.operation.Operation
All known Subclasses: org.jicengine.operation.FieldValueOperation, org.jicengine.operation.EmptyOperation, org.jicengine.operation.ParameterlessOperation, org.jicengine.element.impl.RegisterFactoryOperation, org.jicengine.operation.PushVariableOperation, org.jicengine.operation.VariableValueOperation, org.jicengine.operation.InvocationOperation, org.jicengine.operation.UnexecutableOperation, org.jicengine.element.impl.CdataConverterInvocationOperation, org.jicengine.operation.NegationOperation, org.jicengine.operation.FactoryInvocationOperation,
Operation | public interface Operation (Code) | | An executable operation.
Copyright (C) 2004 Timo Laitinen
author: Timo Laitinen since: JICE-0.10 |
Method Summary | |
public Object | execute(Context context)
executes the operation in a given context. | public boolean | needsParameter(String name)
So clients may query if this operation needs a particular
parameter. | public boolean | needsParameters() So clients may query whether this operation needs
any parameters at all. |
execute | public Object execute(Context context) throws OperationException(Code) | |
executes the operation in a given context. objects in the context
might be used in evaluation, or operation could produce
more objects into the context.
NOTE: operations must be re-executable.
|
needsParameter | public boolean needsParameter(String name)(Code) | |
So clients may query if this operation needs a particular
parameter. a return value 'true' means that in order to execute this
parameter, a parameter with the given name must exist in the context.
if the parmeter in question is an optional parameter, a true must be
returned.
|
needsParameters | public boolean needsParameters()(Code) | | So clients may query whether this operation needs
any parameters at all.
|
|
|