org.tinygroup.flowprocessor.FlowServiceInfo Maven / Gradle / Ivy
/**
* Copyright (c) 1997-2013, www.tinygroup.org ([email protected]).
*
* Licensed under the GPL, Version 3.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.gnu.org/licenses/gpl.html
*
* 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.tinygroup.flowprocessor;
import java.util.ArrayList;
import java.util.List;
import org.tinygroup.event.AbstractServiceInfo;
import org.tinygroup.event.Parameter;
import org.tinygroup.flow.config.Flow;
/**
* Created by luoguo on 14-4-9.
*/
public class FlowServiceInfo extends AbstractServiceInfo {
private static final long serialVersionUID = -7451038800051026910L;
private String serviceId;
private List parameters;
private List results;
private String category;
public FlowServiceInfo(Flow flow) {
serviceId = flow.getId();
parameters = flow.getParameters();
results = flow.getOutputParameters();
category = flow.getCategory();
}
public String getServiceId() {
return serviceId;
}
public List getParameters() {
if(parameters==null){
parameters = new ArrayList();
}
return parameters;
}
public List getResults() {
if(results==null){
results = new ArrayList();
}
return results;
}
public String getCategory() {
return category;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy