|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.tasks.ags.geoprocessing.GPTaskInfo
public class GPTaskInfo
This class provides information on a geoprocessing task at a given url. Information includes:
Nested Class Summary | |
---|---|
static class |
GPTaskInfo.ExecutionType
The Enum ExecutionType. |
static class |
GPTaskInfo.GPParameterInfo
This class provides information on a single parameter of a geoprocessing task.Information includes: Parameter name Parameter display name The parameter's category, if any The parameter's type The parameters direction: in or out The default value The parameter type: required, optional or derived A list of value choices |
static class |
GPTaskInfo.ParamDirection
The Enum ParamDirection. |
static class |
GPTaskInfo.ParamType
The Enum ParamType. |
Constructor Summary | |
---|---|
GPTaskInfo()
|
Method Summary | |
---|---|
static GPTaskInfo |
fromJson(org.codehaus.jackson.JsonParser parser)
Create a GPTaskInfo instance from the json contained in
the given JsonParser object. |
static GPTaskInfo |
fromUrl(String url)
Create a GPTaskInfo instance for the task at the given url. |
static GPTaskInfo |
fromUrl(String url,
UserCredentials credentials)
Create a GPTaskInfo instance for the task at the given
url. |
String |
getCategory()
Gets the category. |
String |
getDisplayName()
Gets the display name. |
GPTaskInfo.ExecutionType |
getExecutionType()
Gets the execution type. |
String |
getHelpUrl()
Gets the help url. |
String |
getName()
Gets the name. |
GPTaskInfo.GPParameterInfo[] |
getParameters()
Gets the parameters. |
protected void |
setCategory(String category)
Sets the category. |
protected void |
setDisplayName(String displayName)
Sets the display name. |
protected void |
setExecutionType(GPTaskInfo.ExecutionType execType)
Sets the execution type. |
protected void |
setHelpUrl(String helpUrl)
Sets the help url. |
protected void |
setName(String name)
Sets the name. |
protected void |
setParameters(GPTaskInfo.GPParameterInfo[] parameterInfo)
Sets the parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GPTaskInfo()
Method Detail |
---|
public static GPTaskInfo fromUrl(String url) throws Exception
GPTaskInfo
instance for the task at the given url.
This method will query the service and return the task information.
url
- the url of the task
Exception
public static GPTaskInfo fromUrl(String url, UserCredentials credentials) throws Exception
GPTaskInfo
instance for the task at the given
url. Login credentials are provided by the credentials
parameter. This method will query the service and return the service
information.
url
- the url of the taskcredentials
- the credentials required to access the service
Exception
public static GPTaskInfo fromJson(org.codehaus.jackson.JsonParser parser) throws Exception
GPTaskInfo
instance from the json contained in
the given JsonParser object.
parser
- the parser
Exception
protected void setName(String name)
name
- the new namepublic String getName()
protected void setDisplayName(String displayName)
displayName
- the new display namepublic String getDisplayName()
protected void setCategory(String category)
category
- the new categorypublic String getCategory()
protected void setHelpUrl(String helpUrl)
helpUrl
- the new help urlpublic String getHelpUrl()
protected void setExecutionType(GPTaskInfo.ExecutionType execType)
execType
- the new execution typepublic GPTaskInfo.ExecutionType getExecutionType()
protected void setParameters(GPTaskInfo.GPParameterInfo[] parameterInfo)
parameterInfo
- the new parameterspublic GPTaskInfo.GPParameterInfo[] getParameters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |