Skip to content

Commit 5fd918d

Browse files
committed
Replace admin-shell-io dependency with aas4j dependency and adjust API calls accordingly
Signed-off-by: Johannes Kristan <[email protected]>
1 parent 7eb4259 commit 5fd918d

File tree

5 files changed

+165
-174
lines changed

5 files changed

+165
-174
lines changed

core/sds-aspect-model-aas-generator/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828
<artifactId>sds-aspect-meta-model-java</artifactId>
2929
</dependency>
3030
<dependency>
31-
<groupId>io.admin-shell.aas</groupId>
31+
<groupId>org.eclipse.aas4j</groupId>
3232
<artifactId>model</artifactId>
3333
</dependency>
3434
<dependency>
35-
<groupId>io.admin-shell.aas</groupId>
35+
<groupId>org.eclipse.aas4j</groupId>
3636
<artifactId>dataformat-xml</artifactId>
3737
</dependency>
3838
<dependency>
39-
<groupId>io.admin-shell.aas</groupId>
39+
<groupId>org.eclipse.aas4j</groupId>
4040
<artifactId>dataformat-aasx</artifactId>
4141
</dependency>
4242
<dependency>

core/sds-aspect-model-aas-generator/src/main/java/io/openmanufacturing/sds/aspectmodel/aas/AspectModelAASGenerator.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
import java.io.OutputStream;
1818
import java.util.function.Function;
1919

20-
import io.adminshell.aas.v3.dataformat.SerializationException;
21-
import io.adminshell.aas.v3.dataformat.aasx.AASXSerializer;
22-
import io.adminshell.aas.v3.dataformat.xml.XmlSerializer;
23-
import io.adminshell.aas.v3.model.AssetAdministrationShellEnvironment;
20+
import org.eclipse.aas4j.v3.dataformat.SerializationException;
21+
import org.eclipse.aas4j.v3.dataformat.aasx.AASXSerializer;
22+
import org.eclipse.aas4j.v3.dataformat.xml.XmlSerializer;
23+
import org.eclipse.aas4j.v3.model.Environment;
24+
2425
import io.openmanufacturing.sds.metamodel.Aspect;
2526

2627
/** Generator that generates an AASX file containing an AAS submodel for a given Aspect model */
@@ -56,7 +57,7 @@ public void generateAasXmlFile(
5657

5758
protected ByteArrayOutputStream generateAasxOutput( Aspect aspect ) throws IOException {
5859
final AspectModelAASVisitor visitor = new AspectModelAASVisitor();
59-
AssetAdministrationShellEnvironment environment = visitor.visitAspect( aspect, null );
60+
Environment environment = visitor.visitAspect( aspect, null );
6061

6162
try ( ByteArrayOutputStream out = new ByteArrayOutputStream() ) {
6263
AASXSerializer serializer = new AASXSerializer();
@@ -69,7 +70,7 @@ protected ByteArrayOutputStream generateAasxOutput( Aspect aspect ) throws IOExc
6970

7071
protected ByteArrayOutputStream generateXmlOutput( Aspect aspect ) throws IOException {
7172
final AspectModelAASVisitor visitor = new AspectModelAASVisitor();
72-
AssetAdministrationShellEnvironment environment = visitor.visitAspect( aspect, null );
73+
Environment environment = visitor.visitAspect( aspect, null );
7374

7475
try ( ByteArrayOutputStream out = new ByteArrayOutputStream() ) {
7576
XmlSerializer serializer = new XmlSerializer();

0 commit comments

Comments
 (0)