|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.adf.web.data.tasks.TaskUtils
public class TaskUtils
The TaskUtils
class provides simple utility methods for accessing metadata for a task.
The methods including accessing task param descriptors, action descriptors and tool descriptors.
Method Summary | |
---|---|
static TaskActionDescriptorModel |
getActionDescriptor(String actionName,
TaskInfo taskInfo)
Returns the task action descriptor for a given actionName in taskInfo . |
static TaskParamValidator |
getDefaultValidator(Class<?> paramType)
Returns a |
static TaskParamDescriptorModel |
getParamDescriptor(String paramName,
TaskInfo taskInfo)
Returns the task param descriptor for a given paramName in taskInfo . |
static TaskToolDescriptorModel |
getToolDescriptor(String toolActionName,
TaskInfo taskInfo)
Returns the task tool descriptor for a given toolActionName in taskInfo . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TaskParamDescriptorModel getParamDescriptor(String paramName, TaskInfo taskInfo)
paramName
in taskInfo
. If the parameter is
not found, it returns null
.
paramName
- the name of the parameter to be foundtaskInfo
- the TaskInfo
object which contains the param descriptor
paramName
in taskInfo
. null
if the parameter is not found.public static TaskActionDescriptorModel getActionDescriptor(String actionName, TaskInfo taskInfo)
actionName
in taskInfo
. If the action is
not found, it returns null
.
actionName
- the name of the action to be foundtaskInfo
- the TaskInfo
object which contains the action descriptor
actionName
in taskInfo
.
null
if the action is not found.public static TaskToolDescriptorModel getToolDescriptor(String toolActionName, TaskInfo taskInfo)
toolActionName
in taskInfo
. If the tool is
not found, it returns null
.
toolActionName
- the name of the tool to be foundtaskInfo
- the TaskInfo
object which contains the action descriptor
toolActionName
in taskInfo
.
null
if the tool is not found.public static TaskParamValidator getDefaultValidator(Class<?> paramType)
paramType
- default object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |