net.officefloor.eclipse.wizard.worksource
Class WorkInstance

java.lang.Object
  extended by net.officefloor.eclipse.wizard.worksource.WorkInstance

public class WorkInstance
extends Object

Instance of a Work.

Author:
Daniel Sagenschneider

Constructor Summary
WorkInstance(WorkModel workModel)
          Initiate for public use.
 
Method Summary
 PropertyList getPropertyList()
          Obtains the PropertyList.
 Map<String,Map<String,String>> getTaskEscalationTypeMappingForTask()
          Obtains the mapping of TaskEscalationType name to TaskEscalationModel name for a particular TaskModel name.
 Map<String,Map<String,String>> getTaskFlowNameMappingForTask()
          Obtains the mapping of TaskFlowType name to TaskFlowModel name for a particular TaskModel name.
 Map<String,Map<String,String>> getTaskObjectNameMappingForWorkTask()
          Obtains the mapping of TaskObjectType name to WorkTaskObjectModel name for a particular WorkTaskModel name.
 String[] getTaskTypeNames()
          Obtains the names of the TaskType instances being used on the WorkType.
 TaskType<?,?,?>[] getTaskTypes()
          Obtains the TaskType instances.
 String getWorkName()
          Obtains the name of the Work.
 String getWorkSourceClassName()
          Obtains the WorkSource class name.
 Map<String,String> getWorkTaskNameMapping()
          Obtains the mapping of TaskType name to WorkTaskModel name.
 WorkType<?> getWorkType()
          Obtains the WorkType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkInstance

public WorkInstance(WorkModel workModel)
Initiate for public use.

Parameters:
workModel - WorkModel.
Method Detail

getWorkName

public String getWorkName()
Obtains the name of the Work.

Returns:
Name of the Work.

getWorkSourceClassName

public String getWorkSourceClassName()
Obtains the WorkSource class name.

Returns:
WorkSource class name.

getPropertyList

public PropertyList getPropertyList()
Obtains the PropertyList.

Returns:
PropertyList.

getWorkType

public WorkType<?> getWorkType()
Obtains the WorkType.

Returns:
WorkType if obtained from WorkSourceInstance or null if initiated by public constructor.

getTaskTypes

public TaskType<?,?,?>[] getTaskTypes()
Obtains the TaskType instances.

Returns:
TaskType instances if obtained from WorkSourceInstance or null if initiated by public constructor.

getTaskTypeNames

public String[] getTaskTypeNames()
Obtains the names of the TaskType instances being used on the WorkType.

Returns:
Names of the TaskType instances being used on the WorkType.

getWorkTaskNameMapping

public Map<String,String> getWorkTaskNameMapping()
Obtains the mapping of TaskType name to WorkTaskModel name.

Returns:
Mapping of TaskType name to WorkTaskModel name.

getTaskObjectNameMappingForWorkTask

public Map<String,Map<String,String>> getTaskObjectNameMappingForWorkTask()
Obtains the mapping of TaskObjectType name to WorkTaskObjectModel name for a particular WorkTaskModel name.

Returns:
Mapping of TaskObjectType name to WorkTaskObjectModel name for a particular WorkTaskModel name.

getTaskFlowNameMappingForTask

public Map<String,Map<String,String>> getTaskFlowNameMappingForTask()
Obtains the mapping of TaskFlowType name to TaskFlowModel name for a particular TaskModel name.

Returns:
Mapping of TaskFlowType name to TaskFlowModel name for a particular TaskModel name.

getTaskEscalationTypeMappingForTask

public Map<String,Map<String,String>> getTaskEscalationTypeMappingForTask()
Obtains the mapping of TaskEscalationType name to TaskEscalationModel name for a particular TaskModel name.

Returns:
Mapping of TaskEscalationType name to TaskEscalationModel name for a particular TaskModel name.


Copyright © 2005-2013. All Rights Reserved.