Skip to content
Snippets Groups Projects

Interfaces

Merged Reiner Jung requested to merge interfaces into main
95 files
+ 2396
590
Compare changes
  • Side-by-side
  • Inline
Files
95
@@ -13,7 +13,7 @@
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
***************************************************************************/
***************************************************************************/
package org.oceandsl.analysis.architecture.model;
package org.oceandsl.analysis.architecture.model; // NOPMD excessiveImports
import java.io.File;
import java.io.File;
import java.io.IOException;
import java.io.IOException;
@@ -80,7 +80,7 @@ public final class ArchitectureModelManagementUtils {
@@ -80,7 +80,7 @@ public final class ArchitectureModelManagementUtils {
private static final Logger LOGGER = LoggerFactory.getLogger(ArchitectureModelManagementUtils.class);
private static final Logger LOGGER = LoggerFactory.getLogger(ArchitectureModelManagementUtils.class);
private ArchitectureModelManagementUtils() {
private ArchitectureModelManagementUtils() {
// TODO Auto-generated constructor stub
// utility class do not instantiate
}
}
public static ModelRepository createModelRepository(final String experimentName, final boolean mapFile) {
public static ModelRepository createModelRepository(final String experimentName, final boolean mapFile) {
@@ -103,9 +103,9 @@ public final class ArchitectureModelManagementUtils {
@@ -103,9 +103,9 @@ public final class ArchitectureModelManagementUtils {
public static ModelRepository loadModelRepository(final Path path) throws ConfigurationException {
public static ModelRepository loadModelRepository(final Path path) throws ConfigurationException {
final ModelRepository repository = new ModelRepository(path.getFileName().toString());
final ModelRepository repository = new ModelRepository(path.getFileName().toString());
final Resource.Factory.Registry reg = Resource.Factory.Registry.INSTANCE;
final Resource.Factory.Registry registry = Resource.Factory.Registry.INSTANCE;
final Map<String, Object> m = reg.getExtensionToFactoryMap();
final Map<String, Object> extensionToFactoryMap = registry.getExtensionToFactoryMap();
m.put("xmi", new XMIResourceFactoryImpl());
extensionToFactoryMap.put("xmi", new XMIResourceFactoryImpl());
final ResourceSet resourceSet = new ResourceSetImpl();
final ResourceSet resourceSet = new ResourceSetImpl();
@@ -148,9 +148,9 @@ public final class ArchitectureModelManagementUtils {
@@ -148,9 +148,9 @@ public final class ArchitectureModelManagementUtils {
error.getLocation(), error.getLine(), error.getMessage());
error.getLocation(), error.getLine(), error.getMessage());
}
}
repository.register(type, resource.getContents().get(0));
repository.register(type, resource.getContents().get(0));
final Iterator<EObject> i = resource.getAllContents();
final Iterator<EObject> iterator = resource.getAllContents();
while (i.hasNext()) {
while (iterator.hasNext()) {
i.next().eCrossReferences();
iterator.next().eCrossReferences();
}
}
} else {
} else {
ArchitectureModelManagementUtils.LOGGER.error("Error reading model file {}. File does not exist.",
ArchitectureModelManagementUtils.LOGGER.error("Error reading model file {}. File does not exist.",
@@ -163,9 +163,9 @@ public final class ArchitectureModelManagementUtils {
@@ -163,9 +163,9 @@ public final class ArchitectureModelManagementUtils {
public static void writeModelRepository(final Path outputDirectory, final ModelRepository repository)
public static void writeModelRepository(final Path outputDirectory, final ModelRepository repository)
throws IOException {
throws IOException {
final Resource.Factory.Registry reg = Resource.Factory.Registry.INSTANCE;
final Resource.Factory.Registry registry = Resource.Factory.Registry.INSTANCE;
final Map<String, Object> m = reg.getExtensionToFactoryMap();
final Map<String, Object> extensionToFactoryMap = registry.getExtensionToFactoryMap();
m.put("xmi", new XMIResourceFactoryImpl());
extensionToFactoryMap.put("xmi", new XMIResourceFactoryImpl());
// store models
// store models
final ResourceSet resourceSet = new ResourceSetImpl();
final ResourceSet resourceSet = new ResourceSetImpl();
Loading