org.jicengine.operation
Class ParameterlessOperation

java.lang.Object
  extended byorg.jicengine.operation.ParameterlessOperation
All Implemented Interfaces:
Operation
Direct Known Subclasses:
StaticValue

public abstract class ParameterlessOperation
extends java.lang.Object
implements Operation

Author:
.timo

Constructor Summary
ParameterlessOperation()
           
 
Method Summary
 boolean needsParameter(java.lang.String name)
           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.
 boolean needsParameters()
          So clients may query whether this operation needs any parameters at all.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jicengine.operation.Operation
execute
 

Constructor Detail

ParameterlessOperation

public ParameterlessOperation()
Method Detail

needsParameters

public boolean needsParameters()
Description copied from interface: Operation
So clients may query whether this operation needs any parameters at all.

Specified by:
needsParameters in interface Operation

needsParameter

public boolean needsParameter(java.lang.String name)
Description copied from interface: Operation

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.

Specified by:
needsParameter in interface Operation