io.vtom.vertx.pipeline.step.VtmStepContext Maven / Gradle / Ivy
package io.vtom.vertx.pipeline.step;
import io.enoa.toolkit.digest.UUIDKit;
public class VtmStepContext {
private String id;
private int ord;
private int after;
private StepStack stepstack;
VtmStepContext(StepStack stepstack) {
this.stepstack = stepstack;
this.id = UUIDKit.next(false);
}
public static VtmStepContext context(Step step) {
return step.context();
}
Step step() {
return new Step<>(this);
}
VtmStepContext id(String id) {
this.id = id;
return this;
}
VtmStepContext ord(int ord) {
this.ord = ord;
return this;
}
VtmStepContext after(int after) {
this.after = after;
return this;
}
public String id() {
return id;
}
public int ord() {
return ord;
}
public int after() {
return after;
}
public StepStack stepstack() {
return stepstack;
}
}