net.sf.nakeduml.validation.activities.ActivityValidationRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of metamodel Show documentation
Show all versions of metamodel Show documentation
A uml code generator and execution engine
The newest version!
package net.sf.nakeduml.validation.activities;
import net.sf.nakeduml.metamodel.validation.IValidationRule;
public enum ActivityValidationRule implements IValidationRule {
AT_LEAST_ONE_DEFAULT_FLOW("1", null),
IMPLICIT_FORK_OR_DECISION("2", null),
NO_CONDITIONAL_FLOW_TO_JOIN("3", null),
ONE_FLOW_TO_OBJECT_NODES("4", null),
ONE_FLOW_FROM_OBJECT_NODES("5", null),
UNIQUE_GUARD_NAMES("6", null),
UNIQUE_EMULATED_ATTRIBUTES("7", null),
UNIQUE_ACTION_NAMES("8", null),
PROCESS_INVOCATION_ONLY_IN_PROCESS("9", null),
RESPONSIBILITIY_INVOCATION_ONLY_IN_PROCESS("10", null),
OPAQUE_ACTION_ONLY_IN_PROCESS("11", null),
SEND_OBJECT_ACTION_ONLY_IN_PROCESS("12", null),
ACCEPT_EVENT_ACTION_ONLY_IN_PROCESS("13", null),
TARGET_FOR_OPAQUE_ACTIONS("14", null),
PIN_FOR_PARAMETER("15", null),
MORE_PINS_THAN_PARAMETERS("16", null);
ActivityValidationRule(String description, String messagePattern) {
this.description = description;
if(messagePattern==null){
messagePattern="{0} is invalid: {1}";
}else{
this.messagePattern = messagePattern;
}}
public String getDescription() {
return description;
}
public String getMessagePattern() {
return messagePattern;
}
private String description;
private String messagePattern;
}