dods.servers.test
Class SSFdummy
java.lang.Object
dods.servers.test.SSFdummy
- All Implemented Interfaces:
- BoolFunction, ServerSideFunction
public class SSFdummy
- extends Object
- implements BoolFunction
Method Summary |
void |
checkArgs(List args)
Checks that the arguments given are acceptable arguments for this
function. |
boolean |
evaluate(List args)
Evaluates the function using the argument list given. |
String |
getName()
Returns the name of the server-side function, as it will appear in
constraint expressions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSFdummy
public SSFdummy()
getName
public String getName()
- Description copied from interface:
ServerSideFunction
- Returns the name of the server-side function, as it will appear in
constraint expressions. This must be a valid DODS identifier.
All functions must have distinct names.
- Specified by:
getName
in interface ServerSideFunction
checkArgs
public void checkArgs(List args)
- Description copied from interface:
ServerSideFunction
- Checks that the arguments given are acceptable arguments for this
function. This method should only use those attributes of a SubClause
which do not change over its lifetime - whether it is constant,
what class of SubClause it is, what class of BaseType it returns, etc.
Thus, the method should not look at the actual value of an argument
unless the argument is flagged as constant.
- Specified by:
checkArgs
in interface ServerSideFunction
- Parameters:
args
- A list of SubClauses that the caller is considering passing
to the evaluate() method of the function.
evaluate
public boolean evaluate(List args)
- Description copied from interface:
BoolFunction
- Evaluates the function using the argument list given.
- Specified by:
evaluate
in interface BoolFunction