Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Commit 5c756a4

Browse files
committed
Corrected errors in AASFull example.
1 parent e429625 commit 5c756a4

1 file changed

Lines changed: 26 additions & 15 deletions

File tree

  • dataformat-core/src/test/java/io/adminshell/aas/v3/dataformat/core

dataformat-core/src/test/java/io/adminshell/aas/v3/dataformat/core/AASFull.java

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
import io.adminshell.aas.v3.model.impl.DefaultView;
6464

6565
public class AASFull {
66-
66+
6767
public static final AssetAdministrationShell AAS_1 = new DefaultAssetAdministrationShell.Builder()
6868
.idShort("TestAssetAdministrationShell")
6969
.description(new LangString("An Example Asset Administration Shell for the test application", "en-us"))
@@ -254,7 +254,7 @@ public class AASFull {
254254
.key(new DefaultKey.Builder()
255255
.type(KeyElements.GLOBAL_REFERENCE)
256256
.idType(KeyType.IRI)
257-
.value("http://acplt.org/ValueId/ExampleValueId")
257+
.value("100")
258258
.build())
259259
.build())
260260
.valueType("int")
@@ -266,18 +266,18 @@ public class AASFull {
266266
.key(new DefaultKey.Builder()
267267
.type(KeyElements.GLOBAL_REFERENCE)
268268
.idType(KeyType.IRI)
269-
.value("http://acplt.org/ValueId/ExampleValueId")
269+
.value("50")
270270
.build())
271271
.build())
272272
.valueType("int")
273273
.type("http://acplt.org/Qualifier/ExampleQualifier2")
274274
.build())
275-
.value("ACPLT")
275+
.value("http://acplt.org/ValueId/ACPLT")
276276
.valueId(new DefaultReference.Builder()
277277
.key(new DefaultKey.Builder()
278278
.type(KeyElements.GLOBAL_REFERENCE)
279279
.idType(KeyType.IRI)
280-
.value("http://acplt.org/ValueId/ExampleValueId")
280+
.value("http://acplt.org/ValueId/ACPLT")
281281
.build())
282282
.build())
283283
.valueType("string")
@@ -298,7 +298,7 @@ public class AASFull {
298298
.key(new DefaultKey.Builder()
299299
.type(KeyElements.GLOBAL_REFERENCE)
300300
.idType(KeyType.IRI)
301-
.value("http://acplt.org/ValueId/ExampleValueId")
301+
.value("978-8234-234-342")
302302
.build())
303303
.build())
304304
.valueType("string")
@@ -347,12 +347,12 @@ public class AASFull {
347347
.idType(KeyType.IRI)
348348
.build())
349349
.build())
350-
.value("exampleValue2")
350+
.value("http://acplt.org/ValueId/ExampleValue2")
351351
.valueId(new DefaultReference.Builder()
352352
.key(new DefaultKey.Builder()
353353
.type(KeyElements.GLOBAL_REFERENCE)
354354
.idType(KeyType.IRI)
355-
.value("http://acplt.org/ValueId/ExampleValueId")
355+
.value("http://acplt.org/ValueId/ExampleValue2")
356356
.build())
357357
.build())
358358
.valueType("string")
@@ -369,7 +369,7 @@ public class AASFull {
369369
.idType(KeyType.IRI)
370370
.build())
371371
.build())
372-
.value("exampleValue")
372+
.value("http://acplt.org/ValueId/ExampleValueId")
373373
.valueId(new DefaultReference.Builder()
374374
.key(new DefaultKey.Builder()
375375
.type(KeyElements.GLOBAL_REFERENCE)
@@ -526,6 +526,7 @@ public class AASFull {
526526
.build())
527527
.submodelElement(new DefaultOperation.Builder()
528528
.idShort("ExampleOperation")
529+
.kind(ModelingKind.TEMPLATE)
529530
.category("Parameter")
530531
.description(new LangString("Example Operation object", "en-us"))
531532
.description(new LangString("Beispiel Operation Element", "de"))
@@ -549,7 +550,7 @@ public class AASFull {
549550
.idType(KeyType.IRI)
550551
.build())
551552
.build())
552-
.value("exampleValue")
553+
.value("http://acplt.org/ValueId/ExampleValueId")
553554
.valueId(new DefaultReference.Builder()
554555
.key(new DefaultKey.Builder()
555556
.type(KeyElements.GLOBAL_REFERENCE)
@@ -573,7 +574,7 @@ public class AASFull {
573574
.idType(KeyType.IRI)
574575
.build())
575576
.build())
576-
.value("exampleValue")
577+
.value("http://acplt.org/ValueId/ExampleValueId")
577578
.valueId(new DefaultReference.Builder()
578579
.key(new DefaultKey.Builder()
579580
.type(KeyElements.GLOBAL_REFERENCE)
@@ -597,7 +598,7 @@ public class AASFull {
597598
.idType(KeyType.IRI)
598599
.build())
599600
.build())
600-
.value("exampleValue")
601+
.value("http://acplt.org/ValueId/ExampleValueId")
601602
.valueId(new DefaultReference.Builder()
602603
.key(new DefaultKey.Builder()
603604
.type(KeyElements.GLOBAL_REFERENCE)
@@ -676,7 +677,7 @@ public class AASFull {
676677
.idType(KeyType.IRI)
677678
.build())
678679
.build())
679-
.value("exampleValue")
680+
.value("http://acplt.org/ValueId/ExampleValueId")
680681
.valueId(new DefaultReference.Builder()
681682
.key(new DefaultKey.Builder()
682683
.type(KeyElements.GLOBAL_REFERENCE)
@@ -884,6 +885,7 @@ public class AASFull {
884885
.build())
885886
.submodelElement(new DefaultOperation.Builder()
886887
.idShort("ExampleOperation")
888+
.kind(ModelingKind.TEMPLATE)
887889
.build())
888890
.submodelElement(new DefaultCapability.Builder()
889891
.idShort("ExampleCapability")
@@ -1079,6 +1081,7 @@ public class AASFull {
10791081
.build())
10801082
.submodelElement(new DefaultOperation.Builder()
10811083
.idShort("ExampleOperation")
1084+
.kind(ModelingKind.TEMPLATE)
10821085
.category("Parameter")
10831086
.description(new LangString("Example Operation object", "en-us"))
10841087
.description(new LangString("Beispiel Operation Element", "de"))
@@ -1414,6 +1417,7 @@ public class AASFull {
14141417
.build())
14151418
.submodelElement(new DefaultOperation.Builder()
14161419
.idShort("ExampleOperation")
1420+
.kind(ModelingKind.TEMPLATE)
14171421
.category("Parameter")
14181422
.description(new LangString("Example Operation object", "en-us"))
14191423
.description(new LangString("Beispiel Operation Element", "de"))
@@ -1732,6 +1736,13 @@ public class AASFull {
17321736
.build())
17331737
.build())
17341738
.embeddedDataSpecification(new DefaultEmbeddedDataSpecification.Builder()
1739+
.dataSpecification(new DefaultReference.Builder()
1740+
.key(new DefaultKey.Builder()
1741+
.type(KeyElements.GLOBAL_REFERENCE)
1742+
.idType(KeyType.IRI)
1743+
.value("DataSpecificationIEC61360")
1744+
.build())
1745+
.build())
17351746
.dataSpecificationContent(new DefaultDataSpecificationIEC61360.Builder()
17361747
.preferredName(new LangString("Test Specification", "de"))
17371748
.preferredName(new LangString("TestSpecification", "en-us"))
@@ -1756,7 +1767,7 @@ public class AASFull {
17561767
.levelType(LevelType.MAX)
17571768
.valueList(new DefaultValueList.Builder()
17581769
.valueReferencePairTypes(new DefaultValueReferencePair.Builder()
1759-
.value("exampleValue")
1770+
.value("http://acplt.org/ValueId/ExampleValueId")
17601771
.valueId(new DefaultReference.Builder()
17611772
.key(new DefaultKey.Builder()
17621773
.type(KeyElements.GLOBAL_REFERENCE)
@@ -1767,7 +1778,7 @@ public class AASFull {
17671778
// TODO valueType
17681779
.build())
17691780
.valueReferencePairTypes(new DefaultValueReferencePair.Builder()
1770-
.value("exampleValue2")
1781+
.value("http://acplt.org/ValueId/ExampleValueId2")
17711782
.valueId(new DefaultReference.Builder()
17721783
.key(new DefaultKey.Builder()
17731784
.type(KeyElements.GLOBAL_REFERENCE)

0 commit comments

Comments
 (0)