Commit ca335a66 authored by Andreas Bayha's avatar Andreas Bayha
Browse files

MIRA: Removed unnused code

ConstraintMessages, that are not used anymore.

Issue-Ref: 3987
Issue-Url: https://af3-developer.fortiss.org/issues/3987

Signed-off-by: Andreas Bayha's avatarAndreas Bayha <bayha@fortiss.org>
parent f128999c
AnalysisRedundantRequirementChecker.java 4a5b3d7ea150c761392fcd80ee90d287115ecd21 YELLOW
ConstraintMessage.java 6823a203d81da003b2524bfe49e8df53b2c9e4f7 YELLOW
ConstraintMessage.java 0ea298838fd81c4d1e8c2546ef83235b2852ff9c YELLOW
RequirementConstraintViolation.java 1e13c74b2c02f6591220243a5865c4f1cdc54fa5 YELLOW
......@@ -15,11 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.mira.verification;
import static org.fortiss.af3.mira.utils.MiraUtils.getRequirementsShortInfo;
import static org.fortiss.tooling.kernel.extension.data.IConstraintViolation.ESeverity.ERROR;
import java.util.List;
import org.fortiss.af3.mira.model.Requirement;
/**
......@@ -105,85 +102,4 @@ public class ConstraintMessage {
return new RequirementConstraintViolation<Requirement>(req1, sameNameActorsViolation,
shortInfo1, shortInfo2, req1.getName());
}
/** Creates the violation for requirements with conflicted relation. */
public static RequirementConstraintViolation<Requirement> createConflictViolation(
Requirement req, List<Requirement> sourceReq, List<Requirement> targetReq) {
String shortInfo1 = getRequirementsShortInfo(sourceReq);
String shortInfo2 = getRequirementsShortInfo(targetReq);
return new RequirementConstraintViolation<Requirement>(req, conflictViolation, shortInfo1,
shortInfo2);
}
/** Creates the violation for requirements with declined relation. */
public static RequirementConstraintViolation<Requirement>
createDeclinedViolation(Requirement req) {
return new RequirementConstraintViolation<Requirement>(req, declinedViolation,
req.getRequirementShortInfo());
}
/** Creates the violation for requirements without status. */
public static RequirementConstraintViolation<Requirement>
createEmptyStatusViolation(Requirement req) {
return new RequirementConstraintViolation<Requirement>(req, emptyStatusViolation,
req.getRequirementShortInfo());
}
/** Creates the violation for requirements without priority. */
public static RequirementConstraintViolation<Requirement>
createEmptyPriorityViolation(Requirement req) {
return new RequirementConstraintViolation<Requirement>(req,
"%s has no priority assigned (E8)", req.getRequirementShortInfo());
}
/** Creates the violation for requirements without name. */
public static RequirementConstraintViolation<Requirement>
createEmtpyNameViolation(Requirement req) {
return new RequirementConstraintViolation<Requirement>(req, "%s has no title (E1.4)",
req.getRequirementShortInfo());
}
/** Creates the violation for requirements without description. */
public static RequirementConstraintViolation<Requirement>
createEmptyDescriptionViolation(Requirement req) {
return new RequirementConstraintViolation<Requirement>(req, "%s has no description (E1.4)",
req.getRequirementShortInfo());
}
/** Creates the violation for requirements without source. */
public static RequirementConstraintViolation<Requirement>
createEmptySourceViolation(Requirement req) {
return new RequirementConstraintViolation<Requirement>(req,
"%s: source is not comprehensively described (E1.5)",
req.getRequirementShortInfo());
}
/** Creates the violation for requirements without rationale. */
public static RequirementConstraintViolation<Requirement>
createEmptyRationaleViolation(Requirement req) {
return new RequirementConstraintViolation<Requirement>(req, emptyRationaleViolation,
req.getRequirementShortInfo());
}
/** Creates the violation for requirements without author. */
public static RequirementConstraintViolation<Requirement>
createEmptyAuthorViolation(Requirement req) {
return new RequirementConstraintViolation<Requirement>(req,
"%s: author is not comprehensively described (E1.5)",
req.getRequirementShortInfo());
}
/** Creates the violation for requirements without any analysis. */
public static RequirementConstraintViolation<Requirement>
createNotAnalyzedViolation(Requirement req) {
return new RequirementConstraintViolation<Requirement>(req, "%s is not analyzed yet (E7.2)",
req.getRequirementShortInfo());
}
/** Creates the violation for requirements without author. */
public static RequirementConstraintViolation<Requirement>
createNoConnectionToComponentArchitectureViolation(Requirement req) {
return new RequirementConstraintViolation<Requirement>(req, noConnectionViolation,
req.getRequirementShortInfo());
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment