opendap.servers.test
public class SSFdummyval extends java.lang.Object implements BTFunction
Constructor and Description |
---|
SSFdummyval() |
Modifier and Type | Method and Description |
---|---|
void |
checkArgs(java.util.List args)
Checks that the arguments given are acceptable arguments for this
function.
|
BaseType |
evaluate(java.util.List args)
Evaluates the function using the argument list given.
|
java.lang.String |
getName()
Returns the name of the server-side function, as it will appear in
constraint expressions.
|
BaseType |
getReturnType(java.util.List args)
A given function must always evaluate to the same class
of BaseType.
|
public java.lang.String getName()
ServerSideFunction
getName
in interface ServerSideFunction
public void checkArgs(java.util.List args) throws InvalidParameterException
ServerSideFunction
checkArgs
in interface ServerSideFunction
args
- A list of SubClauses that the caller is considering passing
to the evaluate() method of the function.InvalidParameterException
- Thrown if the function will not
evaluate successfully using these arguments.public BaseType getReturnType(java.util.List args)
BTFunction
getReturnType
in interface BTFunction
public BaseType evaluate(java.util.List args) throws DAP2ServerSideException
BTFunction
evaluate
in interface BTFunction
DAP2ServerSideException
- Thrown if the function
cannot evaluate successfully. The exact type of exception is up
to the author of the server-side function.