|
@@ -16,18 +16,18 @@ import org.yakindu.sct.model.sgraph.FinalState;
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * All validation contraints for the meta model element {@link FinalState}
|
|
|
+ * All validation constraints for the meta model element {@link FinalState}
|
|
|
*
|
|
|
*/
|
|
|
public class FinalStateValidator extends AbstractSGraphValidator {
|
|
|
|
|
|
- private static final String FINAL_STATE_NO_OUT_TRANSITION_MSG = "A final state must not have outgoing transitions.";
|
|
|
- public static final String FINAL_STATE_NO_OUT_TRANSITION_CODE = "finalstate.NoOutTransitions";
|
|
|
+ private static final String FINAL_STATE_TRANSITIONS_NO_OUT_MSG = "A final state should not have outgoing transitions.";
|
|
|
+ public static final String FINAL_STATE_TRANSITIONS_NO_OUT_CODE = "finalstate.NoOutTransitions";
|
|
|
|
|
|
@Check(CheckType.FAST)
|
|
|
- public void checkNoOutTransitions(FinalState finalState) {
|
|
|
+ public void checkFinalStateTransitionsNoOut(FinalState finalState) {
|
|
|
if ((finalState.getOutgoingTransitions().size() > 0)) {
|
|
|
- warning(FINAL_STATE_NO_OUT_TRANSITION_MSG, finalState, null, -1, FINAL_STATE_NO_OUT_TRANSITION_CODE);
|
|
|
+ warning(FINAL_STATE_TRANSITIONS_NO_OUT_MSG, finalState, null, -1, FINAL_STATE_TRANSITIONS_NO_OUT_CODE);
|
|
|
}
|
|
|
}
|
|
|
|