/* * Copyright (C) 2010 Mathieu Baudier * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.argeo.slc.msg.process; import java.util.ArrayList; import java.util.List; import java.util.Vector; import org.argeo.slc.process.SlcExecutionStep; public class SlcExecutionStepsRequest { private String slcExecutionUuid; private List steps = new ArrayList(); public SlcExecutionStepsRequest() { } public SlcExecutionStepsRequest(String slcExecutionUuid, List steps) { this.slcExecutionUuid = slcExecutionUuid; this.steps = steps; } public SlcExecutionStepsRequest(String slcExecutionUuid, SlcExecutionStep step) { this.slcExecutionUuid = slcExecutionUuid; List steps = new Vector(); steps.add(step); this.steps = steps; } public String getSlcExecutionUuid() { return slcExecutionUuid; } public void setSlcExecutionUuid(String slcExecutionUuid) { this.slcExecutionUuid = slcExecutionUuid; } public List getSteps() { return steps; } public void setSteps(List step) { this.steps = step; } public void addStep(SlcExecutionStep step) { steps.add(step); } @Override public String toString() { return getClass().getSimpleName() + "#" + slcExecutionUuid + " " + steps; } }