org.joinedworkz.common.info.InteractionInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-base Show documentation
Show all versions of common-base Show documentation
DSL based modeling framework - facilities common base
package org.joinedworkz.common.info;
import org.joinedworkz.core.model.CmnActorInteraction;
import org.joinedworkz.core.model.CmnAlternative;
import org.joinedworkz.core.model.CmnComponent;
import org.joinedworkz.core.model.CmnImplementedFeature;
import org.joinedworkz.core.model.CmnLoop;
import org.joinedworkz.core.model.CmnNote;
import org.joinedworkz.core.model.CmnProvidedFeature;
import org.joinedworkz.core.model.CmnProvidedFeatureImplementation;
import org.joinedworkz.core.model.CmnReferencedScenario;
import org.joinedworkz.core.model.CmnResourceOperation;
import org.joinedworkz.core.model.ux.CmnPage;
public class InteractionInfo {
private CmnComponent targetComponent;
private CmnPage targetPage;
private final CmnProvidedFeatureImplementation implementedFeature;
private final CmnProvidedFeature providedFeature;
private final CmnAlternative alternative;
private final CmnLoop loop;
private final CmnReferencedScenario referencedScenario;
private final CmnNote note;
private final CmnActorInteraction actorInteraction;
private boolean triggerOnly;
private String subProcessName;
private boolean sideNote;
private String requestLabel;
private String responseLabel;
private CmnResourceOperation resourceOperation;
public InteractionInfo(CmnActorInteraction actorInteraction) {
this.actorInteraction = actorInteraction;
this.implementedFeature = null;
this.providedFeature = null;
this.alternative = null;
this.loop = null;
this.referencedScenario = null;
this.note = null;
}
public InteractionInfo(CmnProvidedFeatureImplementation implementedFeature) {
this.implementedFeature = implementedFeature;
this.providedFeature = null;
this.alternative = null;
this.loop = null;
this.referencedScenario = null;
this.note = null;
this.actorInteraction = null;
}
public InteractionInfo(CmnProvidedFeature providedFeature) {
this.implementedFeature = null;
this.providedFeature = providedFeature;
this.alternative = null;
this.loop = null;
this.referencedScenario = null;
this.note = null;
this.actorInteraction = null;
}
public InteractionInfo(CmnAlternative alternative) {
this.implementedFeature = null;
this.providedFeature = null;
this.alternative = alternative;
this.loop = null;
this.referencedScenario = null;
this.note = null;
this.actorInteraction = null;
}
public InteractionInfo(CmnLoop loop) {
this.implementedFeature = null;
this.providedFeature = null;
this.alternative = null;
this.loop = loop;
this.referencedScenario = null;
this.note = null;
this.actorInteraction = null;
}
public InteractionInfo(CmnReferencedScenario referencedScenario) {
this.implementedFeature = null;
this.providedFeature = null;
this.alternative = null;
this.loop = null;
this.referencedScenario = referencedScenario;
this.note = null;
this.actorInteraction = null;
}
public InteractionInfo(CmnNote note) {
this.implementedFeature = null;
this.providedFeature = null;
this.alternative = null;
this.loop = null;
this.referencedScenario = null;
this.note = note;
this.actorInteraction = null;
}
public CmnProvidedFeatureImplementation getImplementedFeature() {
return implementedFeature;
}
public CmnProvidedFeature getProvidedFeature() {
return providedFeature;
}
public CmnAlternative getAlternative() {
return alternative;
}
public CmnLoop getLoop() {
return loop;
}
public CmnReferencedScenario getReferencedScenario() {
return referencedScenario;
}
public CmnNote getNote() {
return note;
}
public CmnActorInteraction getActorInteraction() {
return actorInteraction;
}
public CmnResourceOperation getResourceOperation() {
return resourceOperation;
}
public InteractionInfo resourceOperation(CmnResourceOperation resourceOperation) {
this.resourceOperation = resourceOperation;
return this;
}
public boolean isTriggerOnly() {
return triggerOnly;
}
public InteractionInfo triggerOnly(boolean triggerOnly) {
this.triggerOnly = triggerOnly;
return this;
}
public String getSubProcessName() {
return subProcessName;
}
public InteractionInfo subProcessName(String subProcessName) {
this.subProcessName = subProcessName;
return this;
}
public boolean isSideNote() {
return sideNote;
}
public InteractionInfo sideNote(boolean sideNote) {
this.sideNote = sideNote;
return this;
}
public String isRequestLabel() {
return requestLabel;
}
public InteractionInfo requestLabel(String requestLabel) {
this.requestLabel = requestLabel;
return this;
}
public String isResponseLabel() {
return responseLabel;
}
public InteractionInfo responseLabel(String responseLabel) {
this.responseLabel = responseLabel;
return this;
}
public CmnComponent getTargetComponent() {
return targetComponent;
}
public void setTargetComponent(CmnComponent targetComponent) {
this.targetComponent = targetComponent;
}
public CmnPage getTargetPage() {
return targetPage;
}
public void setTargetPage(CmnPage targetPage) {
this.targetPage = targetPage;
}
}