public interface ICasaCommand
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_NAMESPACE
Default value for PROP_COMMAND_NAMESPACE
|
static String |
PROP_DESCRIPTION |
static String |
PROP_NAME |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(InputStream in,
PrintStream out,
org.json.JSONObject param)
Execute a block of code and then returns the result from execution.
|
String |
getDescription()
Get the command description.
|
String |
getName()
Get the name of the Script and command gogo.
|
Signature |
getSignature(int size)
Get signature by passing the number of arguments..
|
boolean |
validate(org.json.JSONObject param,
Signature signature)
To validate the given parameters.
|
static final String DEFAULT_NAMESPACE
static final String PROP_NAME
static final String PROP_DESCRIPTION
Object execute(InputStream in, PrintStream out, org.json.JSONObject param) throws Exception
in and
out stream to print result instead of the direct use of System.in and System.outin - : the input stream.out - : the output stream.param - a json object of parametersException - if anything goes wrongboolean validate(org.json.JSONObject param,
Signature signature)
throws Exception
param - The parameters in JSON formatExceptionString getDescription()
String getName()
Signature getSignature(int size)
Copyright © 2012-2013 ADELE Research Group. All Rights Reserved.