Commit c0e6d03d authored by Liana Soima's avatar Liana Soima

Safety Patterns delete

Signed-off-by: Liana Soima's avatarLiana Soima <soima@fortiss.org>
Issue-Ref: 4054
parent 682877db
requirementspatterns.ecore b2f09bfc949bafb0392929115b3c0321bf2b192c YELLOW
safetyargumentationpackage.ecore e95d1c0c64d12fa1660899df86cc9009dbae1754 YELLOW
safetycases.ecore 6f5959903d681d91823dc2524722e983626bc297 YELLOW
safetycases.ecore 122a0da22e4d986628df14eb2be0e10706b0d836 YELLOW
SafetyClaimPatternsCollectionModelElementFactory.java 483cf80dcaabfa4422273a71c5a6735f3ff03d9e GREEN
/*-------------------------------------------------------------------------+
| Copyright 2014 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.af3.requirementspatterns.utils;
import static org.fortiss.tooling.kernel.utils.KernelModelElementUtils.setNameComment;
import org.fortiss.af3.requirementspatterns.model.RequirementsPatternsFactory;
import org.fortiss.af3.requirementspatterns.model.SafetyClaimPattern;
import org.fortiss.af3.requirementspatterns.model.SafetyClaimPatternsCollection;
/**
* Factory methods for the safety claim patterns collection elements.
*
* @author carlan
*/
public class SafetyClaimPatternsCollectionModelElementFactory {
/** Creates a {@link SafetyClaimPatternsCollection}. */
public static SafetyClaimPatternsCollection createSafetyClaimPatternsCollection() {
return createSafetyClaimPatternsCollection("Safety Claim Patterns Collection", "");
}
/** Creates a {@link SafetyClaimPatternsCollection} with user-defined name and comment. */
public static SafetyClaimPatternsCollection createSafetyClaimPatternsCollection(String name,
String comment) {
SafetyClaimPatternsCollection requirementsPattern =
RequirementsPatternsFactory.eINSTANCE.createSafetyClaimPatternsCollection();
setNameComment(requirementsPattern, name, comment);
return requirementsPattern;
}
/** Creates a {@link SafetyClaimPattern}. */
public static SafetyClaimPattern createSafetyClaimPattern() {
return createSafetyClaimPattern("Safety Claim Pattern", "");
}
/** Creates a {@linSafetyClaimPatternce} with user-defined name and comment. */
public static SafetyClaimPattern createSafetyClaimPattern(String name, String comment) {
SafetyClaimPattern safetyClaimPattern =
RequirementsPatternsFactory.eINSTANCE.createSafetyClaimPattern();
setNameComment(safetyClaimPattern, name, comment);
return safetyClaimPattern;
}
}
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