public class HobsonTask
extends java.lang.Object
Constructor and Description |
---|
HobsonTask() |
HobsonTask(TaskContext context,
java.lang.String name,
java.lang.String description,
boolean enabled,
java.util.Map<java.lang.String,java.lang.Object> properties,
java.util.List<PropertyContainer> conditions,
PropertyContainerSet actionSet) |
Modifier and Type | Method and Description |
---|---|
PropertyContainerSet |
getActionSet()
Returns the action set ID associated with this task.
|
java.util.List<PropertyContainer> |
getConditions()
Returns the condition set for this task.
|
TaskContext |
getContext()
Returns the context of the task.
|
java.util.Collection<PropertyContainerClassContext> |
getDependencies(ActionClassProvider actionClassProvider)
Returns the PropertyContainerClassContexts that this task is dependent on.
|
java.lang.String |
getDescription()
Returns a human-readable description of the task.
|
java.lang.String |
getName()
Returns the task name.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
A list of arbitrary properties associated with the task.
|
boolean |
hasConditions()
Returns whether this task has any conditions.
|
boolean |
hasProperties()
Indicates whether this task has any properties associated with it.
|
boolean |
isEnabled() |
void |
setActionSet(PropertyContainerSet actionSet)
Sets the action set for this task.
|
void |
setConditions(java.util.List<PropertyContainer> conditions)
Sets the condition set for this task.
|
void |
setContext(TaskContext context)
Sets the context of the task.
|
void |
setDescription(java.lang.String description)
Sets a human-readable description of the task.
|
void |
setEnabled(boolean enabled) |
void |
setName(java.lang.String name)
Sets the task name.
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
Sets the task properties.
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets a task property.
|
public HobsonTask()
public HobsonTask(TaskContext context, java.lang.String name, java.lang.String description, boolean enabled, java.util.Map<java.lang.String,java.lang.Object> properties, java.util.List<PropertyContainer> conditions, PropertyContainerSet actionSet)
public TaskContext getContext()
public void setContext(TaskContext context)
context
- a TaskContext intsancepublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the namepublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the descriptionpublic boolean isEnabled()
public void setEnabled(boolean enabled)
public boolean hasProperties()
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public void setProperty(java.lang.String name, java.lang.Object value)
name
- the property namevalue
- the property valuepublic void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
properties
- the full set of task propertiespublic java.util.List<PropertyContainer> getConditions()
public boolean hasConditions()
public void setConditions(java.util.List<PropertyContainer> conditions)
conditions
- the task conditionspublic PropertyContainerSet getActionSet()
public void setActionSet(PropertyContainerSet actionSet)
actionSet
- the new action setpublic java.util.Collection<PropertyContainerClassContext> getDependencies(ActionClassProvider actionClassProvider)
actionClassProvider
- a provider to resolve action classesCopyright © 2015 Whizzo Software LLC. All rights reserved.