org.deduced.task.implementation
Class TaskImplementation

java.lang.Object
  extended by org.deduced.AbstractPropertyCollection<K,V>
      extended by org.deduced.FixedPropertyInstanceCollection<java.lang.Object,java.lang.Object>
          extended by org.deduced.task.implementation.TaskImplementation
All Implemented Interfaces:
java.lang.Cloneable, NamedPropertyCollection, PropertyCollection<java.lang.Object,java.lang.Object>, Task

public class TaskImplementation
extends FixedPropertyInstanceCollection<java.lang.Object,java.lang.Object>
implements Task

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.Object> 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.Object> 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.Object 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 org.deduced.AbstractPropertyCollection
activate, addListener, asPropertyList, asPropertyMap, asValueList, asValueMap, callObjectClone, classLogger, cleanNewlyClonedValue, clear, clearCollectionMonitoredForDelete, cloneCollection, containsInstance, containsValue, createUniqueID, delete, deleteClearAllProperties, deleteClearListenerList, deleteFireDeleteEvent, deleteProcessCompletedValidation, deleteRemoveLocalObjectFromParent, deleteValidateEmptyListenerList, deleteValidateNoPendingReferences, firePropertyChangeEvent, flushCollectionsWithNewParent, flushCollectionsWithNewParent, getActionInvoker, getCheckDeleteMode, getCheckDeleteRunner, getFixedInstance, getInstanceIdentityKey, hashCode, id, instanceKey, internalFirePropertyChangeEvent, invokeAction, isActivated, isDeleteCheckedOnClearParent, isEmpty, isListenerRegistered, isParentOrKeyNull, keyOnParent, parent, removeListener, requiresChangeEvent, setActionInvoker, setCheckDeleteMode, setCheckDeleteRunner, setDeleteCheckedOnClearParent, setFixedInstance, setParent, toString, updateReference, updateReferenceWithReferenceFlag, validateAllPropertyInstances, validateNoListener, validateNoParentRecursion, validateParentIsNull, validateParentIsNull, valueKey
 
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, id, instanceKey, invokeAction, isActivated, isEmpty, isListenerRegistered, iterator, iteratorByValue, keyOnParent, parent, removeListener, removeProperty, removePropertyInstance, removePropertyValue, setFixedInstance, setParent, size, valueKey
 

Field Detail

KEY_SET

public static java.util.Set<java.lang.Object> KEY_SET
list of keys held in this collection


generatedException

private java.lang.Object generatedException
member variable holding the value for : generated exception


startTime

private long startTime
member variable holding the value for : start time


stopTime

private long stopTime
member variable holding the value for : stop time


cancelled

private boolean cancelled
member variable holding the value for : cancelled


result

private java.lang.Object result
member variable holding the value for : result


completed

private boolean completed
member variable holding the value for : completed


order

private int order
member variable holding the value for : order


percentageCompleted

private float percentageCompleted
member variable holding the value for : percentage completed


name

private java.lang.String name
member variable holding the value for : name

Constructor Detail

TaskImplementation

public TaskImplementation()
Default constructor for the type : task

Method Detail

asKeySet

public java.util.Set<java.lang.Object> asKeySet()
Specified by:
asKeySet in interface PropertyCollection<java.lang.Object,java.lang.Object>
Returns:
the key set

type

public PropertyCollectionType type()
(non-Javadoc)

Specified by:
type in interface PropertyCollection<java.lang.Object,java.lang.Object>
Returns:
the property description
See Also:
PropertyCollection.type()

createKeyList

public static void createKeyList()
static method used to initialize the key list on the property collection


getGeneratedException

public java.lang.Object getGeneratedException()
(non-Javadoc)

Specified by:
getGeneratedException in interface Task
Returns:
generated exception
See Also:
Task.getGeneratedException()

getGeneratedException

public static java.lang.Object getGeneratedException(PropertyCollection<?,?> collection)
Get the value of the instance : generated exception

Parameters:
collection - new collection from which to fetch the value
Returns:
generated exception

setGeneratedException

public java.lang.Object setGeneratedException(java.lang.Object setValue)
(non-Javadoc)

Specified by:
setGeneratedException in interface Task
Parameters:
setValue - new generated exception
Returns:
generated exception value after the change
See Also:
Task.setGeneratedException(java.lang.Object)

setGeneratedException

public static java.lang.Object setGeneratedException(PropertyCollection collection,
                                                     java.lang.Object value)
set the value of the instance : generated exception

Parameters:
collection - new collection on which to set the value
value - new value for : generated exception
Returns:
generated exception

getStartTime

public long getStartTime()
(non-Javadoc)

Specified by:
getStartTime in interface Task
Returns:
start time
See Also:
Task.getStartTime()

getStartTime

public static java.lang.Long getStartTime(PropertyCollection<?,?> collection)
Get the value of the instance : start time

Parameters:
collection - new collection from which to fetch the value
Returns:
start time

setStartTime

public long setStartTime(long setValue)
(non-Javadoc)

Specified by:
setStartTime in interface Task
Parameters:
setValue - new start time
Returns:
start time value after the change
See Also:
Task.setStartTime(long)

setStartTime

public static java.lang.Long setStartTime(PropertyCollection collection,
                                          java.lang.Long value)
set the value of the instance : start time

Parameters:
collection - new collection on which to set the value
value - new value for : start time
Returns:
start time

getStopTime

public long getStopTime()
(non-Javadoc)

Specified by:
getStopTime in interface Task
Returns:
stop time
See Also:
Task.getStopTime()

getStopTime

public static java.lang.Long getStopTime(PropertyCollection<?,?> collection)
Get the value of the instance : stop time

Parameters:
collection - new collection from which to fetch the value
Returns:
stop time

setStopTime

public long setStopTime(long setValue)
(non-Javadoc)

Specified by:
setStopTime in interface Task
Parameters:
setValue - new stop time
Returns:
stop time value after the change
See Also:
Task.setStopTime(long)

setStopTime

public static java.lang.Long setStopTime(PropertyCollection collection,
                                         java.lang.Long value)
set the value of the instance : stop time

Parameters:
collection - new collection on which to set the value
value - new value for : stop time
Returns:
stop time

isCancelled

public boolean isCancelled()
(non-Javadoc)

Specified by:
isCancelled in interface Task
Returns:
cancelled
See Also:
Task.isCancelled()

isCancelled

public static java.lang.Boolean isCancelled(PropertyCollection<?,?> collection)
Get the value of the instance : cancelled

Parameters:
collection - new collection from which to fetch the value
Returns:
cancelled

setCancelled

public boolean setCancelled(boolean setValue)
(non-Javadoc)

Specified by:
setCancelled in interface Task
Parameters:
setValue - new cancelled
Returns:
cancelled value after the change
See Also:
Task.setCancelled(boolean)

setCancelled

public static java.lang.Boolean setCancelled(PropertyCollection collection,
                                             java.lang.Boolean value)
set the value of the instance : cancelled

Parameters:
collection - new collection on which to set the value
value - new value for : cancelled
Returns:
cancelled

getResult

public java.lang.Object getResult()
(non-Javadoc)

Specified by:
getResult in interface Task
Returns:
result
See Also:
Task.getResult()

getResult

public static java.lang.Object getResult(PropertyCollection<?,?> collection)
Get the value of the instance : result

Parameters:
collection - new collection from which to fetch the value
Returns:
result

setResult

public java.lang.Object setResult(java.lang.Object setValue)
(non-Javadoc)

Specified by:
setResult in interface Task
Parameters:
setValue - new result
Returns:
result value after the change
See Also:
Task.setResult(java.lang.Object)

setResult

public static java.lang.Object setResult(PropertyCollection collection,
                                         java.lang.Object value)
set the value of the instance : result

Parameters:
collection - new collection on which to set the value
value - new value for : result
Returns:
result

isCompleted

public boolean isCompleted()
(non-Javadoc)

Specified by:
isCompleted in interface Task
Returns:
completed
See Also:
Task.isCompleted()

isCompleted

public static java.lang.Boolean isCompleted(PropertyCollection<?,?> collection)
Get the value of the instance : completed

Parameters:
collection - new collection from which to fetch the value
Returns:
completed

setCompleted

public boolean setCompleted(boolean setValue)
(non-Javadoc)

Specified by:
setCompleted in interface Task
Parameters:
setValue - new completed
Returns:
completed value after the change
See Also:
Task.setCompleted(boolean)

setCompleted

public static java.lang.Boolean setCompleted(PropertyCollection collection,
                                             java.lang.Boolean value)
set the value of the instance : completed

Parameters:
collection - new collection on which to set the value
value - new value for : completed
Returns:
completed

getOrder

public int getOrder()
(non-Javadoc)

Specified by:
getOrder in interface Task
Returns:
order
See Also:
Task.getOrder()

getOrder

public static java.lang.Integer getOrder(PropertyCollection<?,?> collection)
Get the value of the instance : order

Parameters:
collection - new collection from which to fetch the value
Returns:
order

setOrder

public int setOrder(int setValue)
(non-Javadoc)

Specified by:
setOrder in interface Task
Parameters:
setValue - new order
Returns:
order value after the change
See Also:
Task.setOrder(int)

setOrder

public static java.lang.Integer setOrder(PropertyCollection collection,
                                         java.lang.Integer value)
set the value of the instance : order

Parameters:
collection - new collection on which to set the value
value - new value for : order
Returns:
order

getPercentageCompleted

public float getPercentageCompleted()
(non-Javadoc)

Specified by:
getPercentageCompleted in interface Task
Returns:
percentage completed
See Also:
Task.getPercentageCompleted()

getPercentageCompleted

public static java.lang.Float getPercentageCompleted(PropertyCollection<?,?> collection)
Get the value of the instance : percentage completed

Parameters:
collection - new collection from which to fetch the value
Returns:
percentage completed

setPercentageCompleted

public float setPercentageCompleted(float setValue)
(non-Javadoc)

Specified by:
setPercentageCompleted in interface Task
Parameters:
setValue - new percentage completed
Returns:
percentage completed value after the change
See Also:
Task.setPercentageCompleted(float)

setPercentageCompleted

public static java.lang.Float setPercentageCompleted(PropertyCollection collection,
                                                     java.lang.Float value)
set the value of the instance : percentage completed

Parameters:
collection - new collection on which to set the value
value - new value for : percentage completed
Returns:
percentage completed

getName

public java.lang.String getName()
(non-Javadoc)

Specified by:
getName in interface NamedPropertyCollection
Returns:
name
See Also:
NamedPropertyCollection.getName()

getName

public static java.lang.String getName(PropertyCollection<?,?> collection)
Get the value of the instance : name

Parameters:
collection - new collection from which to fetch the value
Returns:
name

setName

public java.lang.String setName(java.lang.String setValue)
(non-Javadoc)

Specified by:
setName in interface NamedPropertyCollection
Parameters:
setValue - new name
Returns:
name value after the change
See Also:
NamedPropertyCollection.setName(java.lang.String)

setName

public static java.lang.String setName(PropertyCollection collection,
                                       java.lang.String value)
set the value of the instance : name

Parameters:
collection - new collection on which to set the value
value - new value for : name
Returns:
name

equals

public boolean equals(java.lang.Object o)
(non-Javadoc)

Overrides:
equals in class AbstractPropertyCollection<java.lang.Object,java.lang.Object>
See Also:
Object.equals(java.lang.Object)

clone

public java.lang.Object clone()
(non-Javadoc)

Specified by:
clone in interface PropertyCollection<java.lang.Object,java.lang.Object>
Overrides:
clone in class AbstractPropertyCollection<java.lang.Object,java.lang.Object>
Returns:
the object clone
See Also:
AbstractPropertyCollection.clone()

setProperty

public java.lang.Object setProperty(java.lang.Object key,
                                    java.lang.Object value)
(non-Javadoc)

Specified by:
setProperty in interface PropertyCollection<java.lang.Object,java.lang.Object>
Overrides:
setProperty in class FixedPropertyInstanceCollection<java.lang.Object,java.lang.Object>
Parameters:
key - the key of the property
value - 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.
Returns:
the added value instance
See Also:
PropertyCollection.setProperty(java.lang.Object,java.lang.Object)

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object key)
(non-Javadoc)

Specified by:
getPropertyValue in interface PropertyCollection<java.lang.Object,java.lang.Object>
Parameters:
key - the property key
Returns:
the property value, null if the get failed
See Also:
PropertyCollection.getPropertyValue(java.lang.Object)

resetListFixedInstances

public static void resetListFixedInstances(Task instance)
reset all the list fixed instances

Parameters:
instance - the instance that will get all its list fixed instances set

createInstancesAndTypes

public static void createInstancesAndTypes()
create instances and types


fillInstancesAndTypesFromSchema

public static void fillInstancesAndTypesFromSchema(PropertyCollection<?,?> schema)
fill instances and types from a schema

Parameters:
schema - the schema that contains the required instances and types

fillInstancesAndTypes

public static void fillInstancesAndTypes()
fill instances and types phase 1


fillTypeLists

public static void fillTypeLists()
fill instances and types phase 2