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

org.activiti.bpmn.model.Interface 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 Interface extends BaseElement {

  protected String name;
  protected String implementationRef;
  protected List operations = new ArrayList();

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getImplementationRef() {
    return implementationRef;
  }

  public void setImplementationRef(String implementationRef) {
    this.implementationRef = implementationRef;
  }

  public List getOperations() {
    return operations;
  }

  public void setOperations(List operations) {
    this.operations = operations;
  }

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

  public void setValues(Interface otherElement) {
    super.setValues(otherElement);
    setName(otherElement.getName());
    setImplementationRef(otherElement.getImplementationRef());

    operations = new ArrayList();
    if (otherElement.getOperations() != null && !otherElement.getOperations().isEmpty()) {
      for (Operation operation : otherElement.getOperations()) {
        operations.add(operation.clone());
      }
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy