net.sourceforge.plantuml.bpm.Cell Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.bpm;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Cell {
private Placeable data;
private final List destinations = new ArrayList<>();
public final Placeable getData() {
return data;
}
public final void setData(Placeable data) {
this.data = data;
}
@Override
public String toString() {
if (data == null) {
return super.toString();
}
return super.toString() + " " + data;
}
public void addConnectionTo2(Placeable other) {
// Should be an assert
if (other instanceof BpmElement == false) {
throw new IllegalArgumentException();
}
this.destinations.add(other);
}
public List getDestinations2() {
return Collections.unmodifiableList(destinations);
}
}