|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deduced.AbstractPropertyCollection<K,V>
org.deduced.FixedPropertyInstanceCollection<java.lang.Integer,java.lang.Object>
org.deduced.task.implementation.TaskImplementation
public class TaskImplementation

Java Implementation used to represent the type : task Class generated by org.deduced.generator.VelocityGenerator Using template : org/deduced/generator/java/JavaImplementation.vm
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.deduced.AbstractPropertyCollection |
|---|
AbstractPropertyCollection.CollectionToDeleteMonitor |
| Field Summary | |
|---|---|
private boolean |
cancelled
member variable holding the value for : cancelled |
private boolean |
completed
member variable holding the value for : completed |
private java.lang.Object |
generatedException
member variable holding the value for : generated exception |
static java.util.Set<java.lang.Integer> |
KEY_SET
list of keys held in this collection |
private java.lang.String |
name
member variable holding the value for : name |
private int |
order
member variable holding the value for : order |
private float |
percentageCompleted
member variable holding the value for : percentage completed |
private java.lang.Object |
result
member variable holding the value for : result |
private long |
startTime
member variable holding the value for : start time |
private long |
stopTime
member variable holding the value for : stop time |
| Fields inherited from class org.deduced.AbstractPropertyCollection |
|---|
CHECK_DELETE_MODE_AUTOMATIC, CHECK_DELETE_MODE_MANUAL, COLLECTION_TO_DELETE |
| Fields inherited from interface org.deduced.task.Task |
|---|
CANCELLED_INSTANCE, COMPLETED_INSTANCE, GENERATED_EXCEPTION_INSTANCE, ORDER_INSTANCE, PERCENTAGE_COMPLETED_INSTANCE, RESULT_INSTANCE, START_TIME_INSTANCE, STOP_TIME_INSTANCE, TASK_TYPE |
| Fields inherited from interface org.deduced.NamedPropertyCollection |
|---|
NAME_INSTANCE, NAMED_PROPERTY_COLLECTION_TYPE |
| Fields inherited from interface org.deduced.PropertyCollection |
|---|
PROPERTY_COLLECTION_TYPE |
| Constructor Summary | |
|---|---|
TaskImplementation()
Default constructor for the type : task |
|
| Method Summary | |
|---|---|
java.util.Set<java.lang.Integer> |
asKeySet()
|
java.lang.Object |
clone()
(non-Javadoc) |
static void |
createInstancesAndTypes()
create instances and types |
static void |
createKeyList()
static method used to initialize the key list on the property collection |
boolean |
equals(java.lang.Object o)
(non-Javadoc) |
static void |
fillInstancesAndTypes()
fill instances and types phase 1 |
static void |
fillInstancesAndTypesFromSchema(PropertyCollection<?,?> schema)
fill instances and types from a schema |
static void |
fillTypeLists()
fill instances and types phase 2 |
java.lang.Object |
getGeneratedException()
(non-Javadoc) |
static java.lang.Object |
getGeneratedException(PropertyCollection<?,?> collection)
Get the value of the instance : generated exception |
java.lang.String |
getName()
(non-Javadoc) |
static java.lang.String |
getName(PropertyCollection<?,?> collection)
Get the value of the instance : name |
int |
getOrder()
(non-Javadoc) |
static java.lang.Integer |
getOrder(PropertyCollection<?,?> collection)
Get the value of the instance : order |
float |
getPercentageCompleted()
(non-Javadoc) |
static java.lang.Float |
getPercentageCompleted(PropertyCollection<?,?> collection)
Get the value of the instance : percentage completed |
java.lang.Object |
getPropertyValue(java.lang.Object key)
(non-Javadoc) |
java.lang.Object |
getResult()
(non-Javadoc) |
static java.lang.Object |
getResult(PropertyCollection<?,?> collection)
Get the value of the instance : result |
long |
getStartTime()
(non-Javadoc) |
static java.lang.Long |
getStartTime(PropertyCollection<?,?> collection)
Get the value of the instance : start time |
long |
getStopTime()
(non-Javadoc) |
static java.lang.Long |
getStopTime(PropertyCollection<?,?> collection)
Get the value of the instance : stop time |
boolean |
isCancelled()
(non-Javadoc) |
static java.lang.Boolean |
isCancelled(PropertyCollection<?,?> collection)
Get the value of the instance : cancelled |
boolean |
isCompleted()
(non-Javadoc) |
static java.lang.Boolean |
isCompleted(PropertyCollection<?,?> collection)
Get the value of the instance : completed |
static void |
resetListFixedInstances(Task instance)
reset all the list fixed instances |
boolean |
setCancelled(boolean setValue)
(non-Javadoc) |
static java.lang.Boolean |
setCancelled(PropertyCollection collection,
java.lang.Boolean value)
set the value of the instance : cancelled |
boolean |
setCompleted(boolean setValue)
(non-Javadoc) |
static java.lang.Boolean |
setCompleted(PropertyCollection collection,
java.lang.Boolean value)
set the value of the instance : completed |
java.lang.Object |
setGeneratedException(java.lang.Object setValue)
(non-Javadoc) |
static java.lang.Object |
setGeneratedException(PropertyCollection collection,
java.lang.Object value)
set the value of the instance : generated exception |
static java.lang.String |
setName(PropertyCollection collection,
java.lang.String value)
set the value of the instance : name |
java.lang.String |
setName(java.lang.String setValue)
(non-Javadoc) |
int |
setOrder(int setValue)
(non-Javadoc) |
static java.lang.Integer |
setOrder(PropertyCollection collection,
java.lang.Integer value)
set the value of the instance : order |
float |
setPercentageCompleted(float setValue)
(non-Javadoc) |
static java.lang.Float |
setPercentageCompleted(PropertyCollection collection,
java.lang.Float value)
set the value of the instance : percentage completed |
java.lang.Object |
setProperty(java.lang.Integer key,
java.lang.Object value)
(non-Javadoc) |
java.lang.Object |
setResult(java.lang.Object setValue)
(non-Javadoc) |
static java.lang.Object |
setResult(PropertyCollection collection,
java.lang.Object value)
set the value of the instance : result |
long |
setStartTime(long setValue)
(non-Javadoc) |
static java.lang.Long |
setStartTime(PropertyCollection collection,
java.lang.Long value)
set the value of the instance : start time |
long |
setStopTime(long setValue)
(non-Javadoc) |
static java.lang.Long |
setStopTime(PropertyCollection collection,
java.lang.Long value)
set the value of the instance : stop time |
PropertyCollectionType |
type()
(non-Javadoc) |
| Methods inherited from class org.deduced.FixedPropertyInstanceCollection |
|---|
addProperty, areKeysAssignedAutomatically, containsKey, getProperty, iterator, iteratorByValue, removeProperty, removePropertyInstance, removePropertyValue, size |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.deduced.PropertyCollection |
|---|
activate, addListener, addProperty, areKeysAssignedAutomatically, asPropertyList, asPropertyMap, asValueList, asValueMap, clear, containsInstance, containsKey, containsValue, delete, getFixedInstance, getProperty, instanceKey, isActivated, isEmpty, isListenerRegistered, iterator, iteratorByValue, keyOnParent, parent, removeListener, removeProperty, removePropertyInstance, removePropertyValue, setParent, size, valueKey |
| Field Detail |
|---|
public static java.util.Set<java.lang.Integer> KEY_SET
private java.lang.Object generatedException
private long startTime
private long stopTime
private boolean cancelled
private java.lang.Object result
private boolean completed
private int order
private float percentageCompleted
private java.lang.String name
| Constructor Detail |
|---|
public TaskImplementation()
| Method Detail |
|---|
public java.util.Set<java.lang.Integer> asKeySet()
asKeySet in interface PropertyCollection<java.lang.Integer,java.lang.Object>public PropertyCollectionType type()
type in interface PropertyCollection<java.lang.Integer,java.lang.Object>PropertyCollection.type()public static void createKeyList()
public java.lang.Object getGeneratedException()
getGeneratedException in interface TaskTask.getGeneratedException()public static java.lang.Object getGeneratedException(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public java.lang.Object setGeneratedException(java.lang.Object setValue)
setGeneratedException in interface TasksetValue - new generated exception
Task.setGeneratedException(java.lang.Object)
public static java.lang.Object setGeneratedException(PropertyCollection collection,
java.lang.Object value)
collection - new collection on which to set the valuevalue - new value for : generated exception
public long getStartTime()
getStartTime in interface TaskTask.getStartTime()public static java.lang.Long getStartTime(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public long setStartTime(long setValue)
setStartTime in interface TasksetValue - new start time
Task.setStartTime(long)
public static java.lang.Long setStartTime(PropertyCollection collection,
java.lang.Long value)
collection - new collection on which to set the valuevalue - new value for : start time
public long getStopTime()
getStopTime in interface TaskTask.getStopTime()public static java.lang.Long getStopTime(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public long setStopTime(long setValue)
setStopTime in interface TasksetValue - new stop time
Task.setStopTime(long)
public static java.lang.Long setStopTime(PropertyCollection collection,
java.lang.Long value)
collection - new collection on which to set the valuevalue - new value for : stop time
public boolean isCancelled()
isCancelled in interface TaskTask.isCancelled()public static java.lang.Boolean isCancelled(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public boolean setCancelled(boolean setValue)
setCancelled in interface TasksetValue - new cancelled
Task.setCancelled(boolean)
public static java.lang.Boolean setCancelled(PropertyCollection collection,
java.lang.Boolean value)
collection - new collection on which to set the valuevalue - new value for : cancelled
public java.lang.Object getResult()
getResult in interface TaskTask.getResult()public static java.lang.Object getResult(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public java.lang.Object setResult(java.lang.Object setValue)
setResult in interface TasksetValue - new result
Task.setResult(java.lang.Object)
public static java.lang.Object setResult(PropertyCollection collection,
java.lang.Object value)
collection - new collection on which to set the valuevalue - new value for : result
public boolean isCompleted()
isCompleted in interface TaskTask.isCompleted()public static java.lang.Boolean isCompleted(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public boolean setCompleted(boolean setValue)
setCompleted in interface TasksetValue - new completed
Task.setCompleted(boolean)
public static java.lang.Boolean setCompleted(PropertyCollection collection,
java.lang.Boolean value)
collection - new collection on which to set the valuevalue - new value for : completed
public int getOrder()
getOrder in interface TaskTask.getOrder()public static java.lang.Integer getOrder(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public int setOrder(int setValue)
setOrder in interface TasksetValue - new order
Task.setOrder(int)
public static java.lang.Integer setOrder(PropertyCollection collection,
java.lang.Integer value)
collection - new collection on which to set the valuevalue - new value for : order
public float getPercentageCompleted()
getPercentageCompleted in interface TaskTask.getPercentageCompleted()public static java.lang.Float getPercentageCompleted(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public float setPercentageCompleted(float setValue)
setPercentageCompleted in interface TasksetValue - new percentage completed
Task.setPercentageCompleted(float)
public static java.lang.Float setPercentageCompleted(PropertyCollection collection,
java.lang.Float value)
collection - new collection on which to set the valuevalue - new value for : percentage completed
public java.lang.String getName()
getName in interface NamedPropertyCollectionNamedPropertyCollection.getName()public static java.lang.String getName(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public java.lang.String setName(java.lang.String setValue)
setName in interface NamedPropertyCollectionsetValue - new name
NamedPropertyCollection.setName(java.lang.String)
public static java.lang.String setName(PropertyCollection collection,
java.lang.String value)
collection - new collection on which to set the valuevalue - new value for : name
public boolean equals(java.lang.Object o)
equals in class AbstractPropertyCollection<java.lang.Integer,java.lang.Object>Object.equals(java.lang.Object)public java.lang.Object clone()
clone in interface PropertyCollection<java.lang.Integer,java.lang.Object>clone in class AbstractPropertyCollection<java.lang.Integer,java.lang.Object>AbstractPropertyCollection.clone()
public java.lang.Object setProperty(java.lang.Integer key,
java.lang.Object value)
setProperty in interface PropertyCollection<java.lang.Integer,java.lang.Object>setProperty in class FixedPropertyInstanceCollection<java.lang.Integer,java.lang.Object>key - the key of the propertyvalue - the new value of the property. If the property is a
collection that is not by reference, this method requires that
the passed collection has a parent set to null since it will
reset the parent.
PropertyCollection.setProperty(java.lang.Object,java.lang.Object)public java.lang.Object getPropertyValue(java.lang.Object key)
getPropertyValue in interface PropertyCollection<java.lang.Integer,java.lang.Object>key - the property key
PropertyCollection.getPropertyValue(java.lang.Object)public static void resetListFixedInstances(Task instance)
instance - the instance that will get all its list fixed instances setpublic static void createInstancesAndTypes()
public static void fillInstancesAndTypesFromSchema(PropertyCollection<?,?> schema)
schema - the schema that contains the required instances and typespublic static void fillInstancesAndTypes()
public static void fillTypeLists()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||