com.emc.storageos.model.TaskList Maven / Gradle / Ivy
/*
* Copyright (c) 2008-2011 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.model;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "tasks")
public class TaskList {
/**
* A list of tasks, including the details of each task.
*
* @valid none
*/
private List taskList;
public TaskList() {
}
public TaskList(List taskList) {
this.taskList = taskList;
}
@XmlElement(name = "task")
public List getTaskList() {
if (taskList == null) {
taskList = new ArrayList();
}
return taskList;
}
public void setTaskList(List taskList) {
this.taskList = taskList;
}
public void addTask(TaskResourceRep task) {
getTaskList().add(task);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy