All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.activiti.bpmn.model.IOSpecification Maven / Gradle / Ivy

There is a newer version: 7.1.0.M6
Show newest version
package org.activiti.bpmn.model;

import java.util.ArrayList;
import java.util.List;

public class IOSpecification extends BaseElement {

  protected List dataInputs = new ArrayList();
  protected List dataOutputs = new ArrayList();
  protected List dataInputRefs = new ArrayList();
  protected List dataOutputRefs = new ArrayList();

  public List getDataInputs() {
    return dataInputs;
  }

  public void setDataInputs(List dataInputs) {
    this.dataInputs = dataInputs;
  }

  public List getDataOutputs() {
    return dataOutputs;
  }

  public void setDataOutputs(List dataOutputs) {
    this.dataOutputs = dataOutputs;
  }

  public List getDataInputRefs() {
    return dataInputRefs;
  }

  public void setDataInputRefs(List dataInputRefs) {
    this.dataInputRefs = dataInputRefs;
  }

  public List getDataOutputRefs() {
    return dataOutputRefs;
  }

  public void setDataOutputRefs(List dataOutputRefs) {
    this.dataOutputRefs = dataOutputRefs;
  }

  public IOSpecification clone() {
    IOSpecification clone = new IOSpecification();
    clone.setValues(this);
    return clone;
  }

  public void setValues(IOSpecification otherSpec) {
    dataInputs = new ArrayList();
    if (otherSpec.getDataInputs() != null && !otherSpec.getDataInputs().isEmpty()) {
      for (DataSpec dataSpec : otherSpec.getDataInputs()) {
        dataInputs.add(dataSpec.clone());
      }
    }

    dataOutputs = new ArrayList();
    if (otherSpec.getDataOutputs() != null && !otherSpec.getDataOutputs().isEmpty()) {
      for (DataSpec dataSpec : otherSpec.getDataOutputs()) {
        dataOutputs.add(dataSpec.clone());
      }
    }

    dataInputRefs = new ArrayList(otherSpec.getDataInputRefs());
    dataOutputRefs = new ArrayList(otherSpec.getDataOutputRefs());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy