From d8dd4734dbc1e51e90e353ce5476ac0d5f7e96a3 Mon Sep 17 00:00:00 2001
From: valentin-gauthier-geosiris
<88202743+valentin-gauthier-geosiris@users.noreply.github.com>
Date: Fri, 22 Sep 2023 01:16:04 +0200
Subject: [PATCH] fixing epcfile reading (#21)
---
pom.xml | 8 +-
.../com/geosiris/energyml/pkg/EPCFile.java | 94 +++++++++++++++++--
.../com/geosiris/energyml/pkg/EPCPackage.java | 16 +++-
.../energyml/pkg/EPCPackageManager.java | 2 +-
.../com/geosiris/energyml/utils/Pair.java | 11 +++
.../utils/test/EPCGenericManagerTest.java | 33 ++-----
.../energyml/utils/test/PairTest.java | 20 ++++
7 files changed, 146 insertions(+), 38 deletions(-)
create mode 100644 src/test/java/com/geosiris/energyml/utils/test/PairTest.java
diff --git a/pom.xml b/pom.xml
index 816da38..07566f6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.geosiris
energyml-utils
${project.groupId}:${project.artifactId}
- 1.0.7
+ 1.0.8
Geosiris
http://www.geosiris.com
@@ -102,6 +102,12 @@
1.0.4
test
+
+ com.geosiris
+ energyml-resqml201
+ 1.0.4
+ test
+
diff --git a/src/main/java/com/geosiris/energyml/pkg/EPCFile.java b/src/main/java/com/geosiris/energyml/pkg/EPCFile.java
index 90dcc14..fd68358 100644
--- a/src/main/java/com/geosiris/energyml/pkg/EPCFile.java
+++ b/src/main/java/com/geosiris/energyml/pkg/EPCFile.java
@@ -15,10 +15,7 @@
*/
package com.geosiris.energyml.pkg;
-import com.geosiris.energyml.utils.EPCGenericManager;
-import com.geosiris.energyml.utils.ExportVersion;
-import com.geosiris.energyml.utils.ObjectController;
-import com.geosiris.energyml.utils.Utils;
+import com.geosiris.energyml.utils.*;
import energyml.content_types.Default;
import energyml.content_types.Override;
import energyml.content_types.Types;
@@ -53,10 +50,15 @@ public class EPCFile {
Map otherFiles;
Map