|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwo.landserf.script.LSCommand
public class LSCommand
Stores a command for the control of a LandSerf process.
Constructor Summary | |
---|---|
LSCommand(String name,
String desc)
Creates a command with the given name and description. |
|
LSCommand(String name,
String desc,
LSParameter[] params)
Creates a command with the given name, description and list of parameters. |
|
LSCommand(String name,
String desc,
LSParameter[] params,
int returnType)
Creates a command with the given name, description, list of parameters and return type. |
Method Summary | |
---|---|
void |
addParameter(LSParameter param)
Adds a parameter to the command. |
String |
getDescription()
Reports the description of the command. |
String |
getHelp()
Reports a longer help message associated with this command. |
String |
getName()
Reports the name of the command. |
LSParameter[] |
getParameters()
Reports the parameters used by the command. |
int |
getReturnType()
Reports the type of value returned by the command. |
void |
setHelp(String message)
Sets a longer help message to be associated with this command. |
boolean |
setParameterValues(Vector paramList)
Sets the parameter values with those given in the given collection. |
String |
toFormattedString()
Reports a formatted help message describing command and its parameters. |
String |
toString()
Reports a help message describing command and its parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LSCommand(String name, String desc)
addParameter()
.
name
- Name of the command.desc
- Description of the command.public LSCommand(String name, String desc, LSParameter[] params)
name
- Name of the command.desc
- Description of the command.params
- List of parameters used by command.public LSCommand(String name, String desc, LSParameter[] params, int returnType)
LSParameter
variable types or LSParamater.VOID
if nothing is returned.
name
- Name of the command.desc
- Description of the command.params
- List of parameters used by command.returnType
- Type of value returned by the command.Method Detail |
---|
public String getName()
public String getDescription()
getHelp()
.
public String getHelp()
public void setHelp(String message)
message
- XHTML Help message to be associated with the command.public LSParameter[] getParameters()
public int getReturnType()
LSParameter.VOID
if nothing returned or one of the LSParameter types (STRING
, NUMBER
,
RASTER_PARAM
etc.)
public boolean setParameterValues(Vector paramList)
paramList
- List of parameters values to supply to this command. This should stored
as a collection of objects of type SpatialObject or String (including
number and boolean representations). If any values are null and the
command has default values supplied, these will be substituted.
public void addParameter(LSParameter param)
param
- Parameter to add.public String toString()
toFormattedString()
toString
in class Object
public String toFormattedString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |