net.sourceforge.plantuml.bpm.BpmBranch 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;
public class BpmBranch {
private final int uid;
private int counter = 1;
public BpmBranch(int uid) {
this.uid = uid;
}
public int incAndGetCounter() {
counter++;
return counter;
}
private String getEntryId() {
return "$branchA" + uid;
}
private String getExitId() {
return "$branchB" + uid;
}
public BpmElement getEntryElement() {
return new BpmElement(getEntryId(), BpmElementType.MERGE, null);
}
public BpmElement getElseElement() {
return new BpmElement(getExitId(), BpmElementType.MERGE, null);
}
public BpmEvent getResumeEntryEvent() {
return new BpmEventResume(getEntryId());
}
public BpmEvent getGoToEndEvent() {
return new BpmEventGoto(getExitId());
}
}