Skip to content

Commit

Permalink
Upgrade RDF dataformat to RC02
Browse files Browse the repository at this point in the history
Fix JSON dataformat bugs which appeared after closing some leftovers from the model/mixins updates
  • Loading branch information
sebbader-sap committed Aug 3, 2022
1 parent fe5e096 commit 89694e9
Show file tree
Hide file tree
Showing 111 changed files with 1,077 additions and 933 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public default void visit(AssetInformation assetInformation) {
return;
}
visit(assetInformation.getGlobalAssetId());
assetInformation.getSpecificAssetId().forEach(x -> visit(x));
assetInformation.getSpecificAssetIds().forEach(x -> visit(x));
visit(assetInformation.getDefaultThumbnail());
AssetAdministrationShellElementVisitor.super.visit(assetInformation);
}
Expand Down Expand Up @@ -174,8 +174,8 @@ public default void visit(Referable referable) {
if (referable == null) {
return;
}
referable.getDescription().forEach(x -> visit(x));
referable.getDisplayName().forEach(x -> visit(x));
referable.getDescriptions().forEach(x -> visit(x));
referable.getDisplayNames().forEach(x -> visit(x));
AssetAdministrationShellElementVisitor.super.visit(referable);
}

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ final public void setCategory(String category) {
}

@Override
final public List<LangString> getDescription() {
final public List<LangString> getDescriptions() {
return descriptions;
}

@Override
final public void setDescription(List<LangString> description) {
final public void setDescriptions(List<LangString> description) {
this.descriptions = description;
}

Expand All @@ -142,12 +142,12 @@ public void setChecksum(String checksum) {
}

@Override
final public List<LangString> getDisplayName() {
final public List<LangString> getDisplayNames() {
return displayNames;
}

@Override
final public void setDisplayName(List<LangString> displayName) {
final public void setDisplayNames(List<LangString> displayName) {
this.displayNames = displayName;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"idShort": "TestAssetAdministrationShell",
"description": [
"descriptions": [
{
"language": "en-us",
"text": "An Example Asset Administration Shell for the test application"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"idShort": "TestAssetAdministrationShell",
"description": [
"descriptions": [
{
"language": "en-us",
"text": "An Example Asset Administration Shell for the test application"
Expand Down
2 changes: 1 addition & 1 deletion dataformat-json/src/test/resources/jsonExample.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"type": "GlobalReference"
},
"specificAssetId": [
"specificAssetIds": [
{
"name": "EquipmentID",
"value": "538fd1b3-f99f-4a52-9c75-72e9fa921270",
Expand Down
6 changes: 3 additions & 3 deletions dataformat-json/src/test/resources/submodel.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
}
],
"idShort": "ManufacturerName",
"description": [
"descriptions": [
{
"language": "en-us",
"text": "Legally valid designation of the natural or judicial person which is directly responsible for the design, production, packaging and labeling of a product in respect to its being brought into circulation."
Expand Down Expand Up @@ -93,7 +93,7 @@
},
"valueType": "xs:string",
"idShort": "InstanceId",
"description": [
"descriptions": [
{
"language": "en-us",
"text": "Legally valid designation of the natural or judicial person which is directly responsible for the design, production, packaging and labeling of a product in respect to its being brought into circulation."
Expand All @@ -105,7 +105,7 @@
]
}
],
"description": [
"descriptions": [
{
"language": "en-us",
"text": "An example asset identification submodel for the test application"
Expand Down
2 changes: 1 addition & 1 deletion dataformat-json/src/test/resources/submodelElement.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}
],
"idShort": "ManufacturerName",
"description": [
"descriptions": [
{
"language": "en-us",
"text": "Legally valid designation of the natural or judicial person which is directly responsible for the design, production, packaging and labeling of a product in respect to its being brought into circulation."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"idShort": "ExampleSubmodelCollectionOrdered",
"category": "Parameter",
"description": [
"descriptions": [
{
"language": "en-us",
"text": "Example SubmodelElementCollectionOrdered object"
Expand All @@ -27,7 +27,7 @@
{
"idShort": "ExampleProperty",
"category": "Constant",
"description": [
"descriptions": [
{
"language": "en-us",
"text": "Example Property object"
Expand All @@ -54,7 +54,7 @@
{
"idShort": "ExampleMultiLanguageProperty",
"category": "Constant",
"description": [
"descriptions": [
{
"language": "en-us",
"text": "Example MultiLanguageProperty object"
Expand All @@ -80,7 +80,7 @@
{
"idShort": "ExampleRange",
"category": "Parameter",
"description":
"descriptions":
[
{
"language": "en-us",
Expand Down Expand Up @@ -109,7 +109,7 @@
{
"idShort": "ExampleRange2",
"category": "Parameter",
"description":
"descriptions":
[
{
"language": "en-us",
Expand Down
4 changes: 2 additions & 2 deletions dataformat-json/src/test/resources/submodelElementList.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}
],
"idShort": "ManufacturerName",
"description": [
"descriptions": [
{
"language": "en-us",
"text": "Legally valid designation of the natural or judicial person which is directly responsible for the design, production, packaging and labeling of a product in respect to its being brought into circulation."
Expand Down Expand Up @@ -72,7 +72,7 @@
},
"valueType": "xs:string",
"idShort": "InstanceId",
"description": [
"descriptions": [
{
"language": "en-us",
"text": "Legally valid designation of the natural or judicial person which is directly responsible for the design, production, packaging and labeling of a product in respect to its being brought into circulation."
Expand Down
16 changes: 8 additions & 8 deletions dataformat-json/src/test/resources/submodelList.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
}
],
"idShort": "ManufacturerName",
"description": [
"descriptions": [
{
"language": "en-us",
"text": "Legally valid designation of the natural or judicial person which is directly responsible for the design, production, packaging and labeling of a product in respect to its being brought into circulation."
Expand Down Expand Up @@ -93,7 +93,7 @@
},
"valueType": "xs:string",
"idShort": "InstanceId",
"description": [
"descriptions": [
{
"language": "en-us",
"text": "Legally valid designation of the natural or judicial person which is directly responsible for the design, production, packaging and labeling of a product in respect to its being brought into circulation."
Expand All @@ -105,7 +105,7 @@
]
}
],
"description": [
"descriptions": [
{
"language": "en-us",
"text": "An example asset identification submodel for the test application"
Expand Down Expand Up @@ -166,7 +166,7 @@
"valueType": "xs:string",
"category": "Constant",
"idShort": "ExampleProperty2",
"description": [
"descriptions": [
{
"language": "en-us",
"text": "Example Property object"
Expand Down Expand Up @@ -203,7 +203,7 @@
"valueType": "xs:string",
"category": "Constant",
"idShort": "ExampleProperty",
"description": [
"descriptions": [
{
"language": "en-us",
"text": "Example Property object"
Expand All @@ -226,7 +226,7 @@
"type": "GlobalReference"
},
"idShort": "ExampleEntity",
"description": [
"descriptions": [
{
"language": "en-us",
"text": "Legally valid designation of the natural or judicial person which is directly responsible for the design, production, packaging and labeling of a product in respect to its being brought into circulation."
Expand Down Expand Up @@ -261,7 +261,7 @@
"type": "GlobalReference"
},
"idShort": "ExampleEntity2",
"description": [
"descriptions": [
{
"language": "en-us",
"text": "Legally valid designation of the natural or judicial person which is directly responsible for the design, production, packaging and labeling of a product in respect to its being brought into circulation."
Expand All @@ -273,7 +273,7 @@
]
}
],
"description": [
"descriptions": [
{
"language": "en-us",
"text": "An example bill of material submodel for the test application"
Expand Down
Loading

0 comments on commit 89694e9

Please sign in to comment.