Commit ada1b036 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

RED

refs 862
parent 33de9fbb
......@@ -40,22 +40,26 @@ public class AnalysisStaticImpl {
/** Return {@link Requirement} list */
public static EList<Requirement> getRequirementsList(Analysis analysis) {
// TODO (FH): use import static
return EcoreUtils.pickInstanceOf(Requirement.class, analysis.getContainedElementsList());
}
/** Return {@link Glossary} list */
public static EList<Glossary> getGlossariesList(Analysis analysis) {
// TODO (FH): use import static
return EcoreUtils.pickInstanceOf(Glossary.class, analysis.getContainedElementsList());
}
/** Return {@link RequirementRelation} list */
public static EList<RequirementRelation> getRequirementRelationsList(Analysis analysis) {
// TODO (FH): use import static
return ECollections.unmodifiableEList(EcoreUtils.convertList(RequirementRelation.class,
analysis.getConnectionsList()));
}
/** Return {@link UseCase} list */
public static EList<UseCase> getUseCase(Analysis analysis) {
// TODO (FH): use import static
return pickInstanceOf(UseCase.class, analysis.getContainedElementsList());
}
}
......@@ -41,6 +41,7 @@ public class UseCaseStaticImpl {
/** Return all {@link Scenario}s */
public static EList<Scenario> getScenariosList(UseCase useCase) {
// TODO (FH): use import static
return EcoreUtils.pickInstanceOf(Scenario.class, useCase.getContainedElementsList());
}
......@@ -63,5 +64,4 @@ public class UseCaseStaticImpl {
public static EList<OutputSpecification> getOutputSpecification(UseCase useCase) {
return pickInstanceOf(OutputSpecification.class, useCase.getReferencedByList());
}
}
Supports Markdown
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