Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * 
   */
  package net.officefloor.model.desk;
  
  import java.util.List;
  
 
 
 @Generated("net.officefloor.model.generate.ModelGenerator")
 public class TaskModel extends AbstractModel implements ItemModel<TaskModel> {
 
     public static enum TaskEvent {
      CHANGE_TASK_NAME, CHANGE_IS_PUBLIC, CHANGE_WORK_NAME, CHANGE_WORK_TASK_NAME, CHANGE_RETURN_TYPE, CHANGE_INITIAL_TASK_FOR_WORK, CHANGE_WORK_TASK, CHANGE_NEXT_EXTERNAL_FLOW, CHANGE_NEXT_TASK, ADD_PREVIOUS_TASK, REMOVE_PREVIOUS_TASK, ADD_TASK_FLOW, REMOVE_TASK_FLOW, ADD_TASK_FLOW_INPUT, REMOVE_TASK_FLOW_INPUT, ADD_TASK_ESCALATION, REMOVE_TASK_ESCALATION, ADD_TASK_ESCALATION_INPUT, REMOVE_TASK_ESCALATION_INPUT, ADD_DESK_MANAGED_OBJECT_SOURCE_FLOW, REMOVE_DESK_MANAGED_OBJECT_SOURCE_FLOW
     }

    
Default constructor.
 
     public TaskModel() {
     }

    
Convenience constructor for new non-linked instance.
 
     public TaskModel(
       String taskName
     , boolean isPublic
     , String workName
     , String workTaskName
     , String returnType
     ) {
         this. = taskName;
         this. = isPublic;
         this. = workName;
         this. = workTaskName;
         this. = returnType;
     }

    
Convenience constructor.
 
     public TaskModel(
       String taskName
     , boolean isPublic
     , String workName
     , String workTaskName
     , String returnType
     , WorkToInitialTaskModel initialTaskForWork
     , WorkTaskToTaskModel workTask
     , TaskToNextExternalFlowModel nextExternalFlow
     , TaskToNextTaskModel nextTask
     , TaskToNextTaskModel[] previousTask
     , TaskFlowModel[] taskFlow
     , TaskFlowToTaskModel[] taskFlowInput
     , TaskEscalationModel[] taskEscalation
     , TaskEscalationToTaskModel[] taskEscalationInput
     , DeskManagedObjectSourceFlowToTaskModel[] deskManagedObjectSourceFlow
     ) {
         this. = taskName;
         this. = isPublic;
         this. = workName;
         this. = workTaskName;
         this. = returnType;
         this. = initialTaskForWork;
         this. = workTask;
         this. = nextExternalFlow;
         this. = nextTask;
         if (previousTask != null) {
             for (TaskToNextTaskModel model : previousTask) {
                 this..add(model);
             }
         }
         if (taskFlow != null) {
             for (TaskFlowModel model : taskFlow) {
                 this..add(model);
             }
         }
         if (taskFlowInput != null) {
             for (TaskFlowToTaskModel model : taskFlowInput) {
                 this..add(model);
             }
         }
         if (taskEscalation != null) {
             for (TaskEscalationModel model : taskEscalation) {
                 this..add(model);
             }
         }
         if (taskEscalationInput != null) {
             for (TaskEscalationToTaskModel model : taskEscalationInput) {
                 this..add(model);
             }
         }
         if (deskManagedObjectSourceFlow != null) {
            for (DeskManagedObjectSourceFlowToTaskModel model : deskManagedObjectSourceFlow) {
                this..add(model);
            }
        }
    }

    
Convenience constructor allowing XY initialising.
    public TaskModel(
      String taskName
    , boolean isPublic
    , String workName
    , String workTaskName
    , String returnType
    , WorkToInitialTaskModel initialTaskForWork
    , WorkTaskToTaskModel workTask
    , TaskToNextExternalFlowModel nextExternalFlow
    , TaskToNextTaskModel nextTask
    , TaskToNextTaskModel[] previousTask
    , TaskFlowModel[] taskFlow
    , TaskFlowToTaskModel[] taskFlowInput
    , TaskEscalationModel[] taskEscalation
    , TaskEscalationToTaskModel[] taskEscalationInput
    , DeskManagedObjectSourceFlowToTaskModel[] deskManagedObjectSourceFlow
    , int x
    , int y
    ) {
        this. = taskName;
        this. = isPublic;
        this. = workName;
        this. = workTaskName;
        this. = returnType;
        this. = initialTaskForWork;
        this. = workTask;
        this. = nextExternalFlow;
        this. = nextTask;
        if (previousTask != null) {
            for (TaskToNextTaskModel model : previousTask) {
                this..add(model);
            }
        }
        if (taskFlow != null) {
            for (TaskFlowModel model : taskFlow) {
                this..add(model);
            }
        }
        if (taskFlowInput != null) {
            for (TaskFlowToTaskModel model : taskFlowInput) {
                this..add(model);
            }
        }
        if (taskEscalation != null) {
            for (TaskEscalationModel model : taskEscalation) {
                this..add(model);
            }
        }
        if (taskEscalationInput != null) {
            for (TaskEscalationToTaskModel model : taskEscalationInput) {
                this..add(model);
            }
        }
        if (deskManagedObjectSourceFlow != null) {
            for (DeskManagedObjectSourceFlowToTaskModel model : deskManagedObjectSourceFlow) {
                this..add(model);
            }
        }
        this.setX(x);
        this.setY(y);
    }

    
Task name.
    private String taskName;
    public String getTaskName() {
        return this.;
    }
    public void setTaskName(String taskName) {
        String oldValue = this.;
        this. = taskName;
        this.changeField(oldValuethis..);
    }

    
Is public.
    private boolean isPublic;
    public boolean getIsPublic() {
        return this.;
    }
    public void setIsPublic(boolean isPublic) {
        boolean oldValue = this.;
        this. = isPublic;
        this.changeField(oldValuethis..);
    }

    
Work name.
    private String workName;
    public String getWorkName() {
        return this.;
    }
    public void setWorkName(String workName) {
        String oldValue = this.;
        this. = workName;
        this.changeField(oldValuethis..);
    }

    
Work task name.
    private String workTaskName;
    public String getWorkTaskName() {
        return this.;
    }
    public void setWorkTaskName(String workTaskName) {
        String oldValue = this.;
        this. = workTaskName;
        this.changeField(oldValuethis..);
    }

    
Return type.
    private String returnType;
    public String getReturnType() {
        return this.;
    }
    public void setReturnType(String returnType) {
        String oldValue = this.;
        this. = returnType;
        this.changeField(oldValuethis..);
    }

    
Initial task for work.
        return this.;
    }
    public void setInitialTaskForWork(WorkToInitialTaskModel initialTaskForWork) {
        WorkToInitialTaskModel oldValue = this.;
        this. = initialTaskForWork;
    }

    
Work task.
    private WorkTaskToTaskModel workTask;
    public WorkTaskToTaskModel getWorkTask() {
        return this.;
    }
    public void setWorkTask(WorkTaskToTaskModel workTask) {
        WorkTaskToTaskModel oldValue = this.;
        this. = workTask;
        this.changeField(oldValuethis..);
    }

    
Next external flow.
        return this.;
    }
    public void setNextExternalFlow(TaskToNextExternalFlowModel nextExternalFlow) {
        TaskToNextExternalFlowModel oldValue = this.;
        this. = nextExternalFlow;
        this.changeField(oldValuethis..);
    }

    
Next task.
    private TaskToNextTaskModel nextTask;
    public TaskToNextTaskModel getNextTask() {
        return this.;
    }
    public void setNextTask(TaskToNextTaskModel nextTask) {
        TaskToNextTaskModel oldValue = this.;
        this. = nextTask;
        this.changeField(oldValuethis..);
    }


    
Previous task.
        return this.;
    }
    public void addPreviousTask(TaskToNextTaskModel previousTask) {
        this.addItemToList(previousTaskthis..);
    }
    public void removePreviousTask(TaskToNextTaskModel previousTask) {
        this.removeItemFromList(previousTaskthis..);
    }

    
Task flow.
    private List<TaskFlowModeltaskFlow = new LinkedList<TaskFlowModel>();
    public List<TaskFlowModelgetTaskFlows() {
        return this.;
    }
    public void addTaskFlow(TaskFlowModel taskFlow) {
        this.addItemToList(taskFlowthis..);
    }
    public void removeTaskFlow(TaskFlowModel taskFlow) {
        this.removeItemFromList(taskFlowthis..);
    }

    
Task flow input.
        return this.;
    }
    public void addTaskFlowInput(TaskFlowToTaskModel taskFlowInput) {
        this.addItemToList(taskFlowInputthis..);
    }
    public void removeTaskFlowInput(TaskFlowToTaskModel taskFlowInput) {
        this.removeItemFromList(taskFlowInputthis..);
    }

    
Task escalation.
        return this.;
    }
    public void addTaskEscalation(TaskEscalationModel taskEscalation) {
        this.addItemToList(taskEscalationthis..);
    }
    public void removeTaskEscalation(TaskEscalationModel taskEscalation) {
        this.removeItemFromList(taskEscalationthis..);
    }

    
Task escalation input.
        return this.;
    }
    public void addTaskEscalationInput(TaskEscalationToTaskModel taskEscalationInput) {
        this.addItemToList(taskEscalationInputthis..);
    }
    public void removeTaskEscalationInput(TaskEscalationToTaskModel taskEscalationInput) {
        this.removeItemFromList(taskEscalationInputthis..);
    }

    
Desk managed object source flow.
        return this.;
    }
    public void addDeskManagedObjectSourceFlow(DeskManagedObjectSourceFlowToTaskModel deskManagedObjectSourceFlow) {
        this.addItemToList(deskManagedObjectSourceFlowthis..);
    }
    public void removeDeskManagedObjectSourceFlow(DeskManagedObjectSourceFlowToTaskModel deskManagedObjectSourceFlow) {
    }


    
Remove Connections.
        RemoveConnectionsAction<TaskModel_action = new RemoveConnectionsAction<TaskModel>(this);
        _action.disconnect(this.);
        _action.disconnect(this.);
        _action.disconnect(this.);
        _action.disconnect(this.);
        _action.disconnect(this.);
        _action.disconnect(this.);
        _action.disconnect(this.);
        _action.disconnect(this.);
        for (TaskFlowModel _cascade : this.) {
            _action.addCascadeModel(_cascade.removeConnections());
        }
        for (TaskEscalationModel _cascade : this.) {
            _action.addCascadeModel(_cascade.removeConnections());
        }
        return _action;
    }
New to GrepCode? Check out our FAQ X