Skip to content

Commit

Permalink
Add displayName to ReferableMixin and adjust examples
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoweiss committed Mar 1, 2023
1 parent bfc93ea commit f89aa1e
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@

public interface ReferableMixin {

@JsonInclude(JsonInclude.Include.NON_NULL)
public Set<AssetAdministrationShell> getIdShort();

@JsonProperty("description")
public List<LangString> getDescription();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,16 @@ public class Examples {
public static final ExampleData<List<SubmodelElement>> SUBMODEL_ELEMENT_LIST_OF = ExampleData.of(
List.of(AASFull.ENVIRONMENT.getSubmodels().get(0).getSubmodelElements().get(0),
AASFull.ENVIRONMENT.getSubmodels().get(0).getSubmodelElements().get(1)),
"SubmodelElement-List.json");
"submodelelement-list.json");

public static final ExampleData<List<Submodel>> SUBMODEL_LIST_OF = ExampleData.of(
List.of(AASFull.ENVIRONMENT.getSubmodels().get(0),
AASFull.ENVIRONMENT.getSubmodels().get(1)),
"Submodel-List.json");

public static final ExampleData<Submodel> SUBMODEL = ExampleData.of(AASFull.ENVIRONMENT.getSubmodels().get(0), "Submodel.json");
public static final ExampleData<Submodel> SUBMODEL = ExampleData.of(AASFull.ENVIRONMENT.getSubmodels().get(0), "submodel.json");

public static final ExampleData<SubmodelElement> SUBMODEL_ELEMENT = ExampleData.of(AASFull.ENVIRONMENT.getSubmodels().get(0).getSubmodelElements().get(0), "SubmodelElement.json");
public static final ExampleData<SubmodelElement> SUBMODEL_ELEMENT = ExampleData.of(AASFull.ENVIRONMENT.getSubmodels().get(0).getSubmodelElements().get(0), "submodelElement.json");

public static final ExampleData<SubmodelElementCollection> SUBMODEL_ELEMENT_COLLECTION = ExampleData.of((SubmodelElementCollection)AASFull.ENVIRONMENT.getSubmodels().get(6).getSubmodelElements().get(6), "SubmodelElementCollection.json");

Expand Down
57 changes: 32 additions & 25 deletions dataformat-json/src/test/resources/Example-Full.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"text": "Ein Beispiel-Verwaltungsschale für eine Test-Anwendung"
}
]

},
{
"modelType": "AssetAdministrationShell",
Expand Down Expand Up @@ -186,7 +186,7 @@
"text": "Ein Beispiel-Verwaltungsschale für eine Test-Anwendung"
}
]

}
],
"conceptDescriptions": [
Expand Down Expand Up @@ -221,7 +221,7 @@
"text": "Ein Beispiel-ConceptDescription für eine Test-Anwendung"
}
]

},
{
"modelType": "ConceptDescription",
Expand Down Expand Up @@ -249,7 +249,7 @@
"text": "Ein Beispiel-ConceptDescription für eine Test-Anwendung"
}
]

},
{
"modelType": "ConceptDescription",
Expand Down Expand Up @@ -429,6 +429,13 @@
}
],
"idShort": "ManufacturerName",
"displayName": [
{
"language": "en-us",
"text": "Manufacturer Name"
}
],
"checksum": "someCheckSum",
"description": [
{
"language": "en-us",
Expand All @@ -439,7 +446,7 @@
"text": "Bezeichnung für eine natürliche oder juristische Person, die für die Auslegung, Herstellung und Verpackung sowie die Etikettierung eines Produkts im Hinblick auf das 'Inverkehrbringen' im eigenen Namen verantwortlich ist"
}
]

},
{
"modelType": "Property",
Expand Down Expand Up @@ -480,7 +487,7 @@
"text": "Bezeichnung für eine natürliche oder juristische Person, die für die Auslegung, Herstellung und Verpackung sowie die Etikettierung eines Produkts im Hinblick auf das 'Inverkehrbringen' im eigenen Namen verantwortlich ist"
}
]

}
],
"description": [
Expand All @@ -493,7 +500,7 @@
"text": "Ein Beispiel-Identifikations-Submodel für eine Test-Anwendung"
}
]

},
{
"modelType": "Submodel",
Expand Down Expand Up @@ -628,7 +635,7 @@
"text": "Bezeichnung für eine natürliche oder juristische Person, die für die Auslegung, Herstellung und Verpackung sowie die Etikettierung eines Produkts im Hinblick auf das 'Inverkehrbringen' im eigenen Namen verantwortlich ist"
}
]

},
{
"modelType": "Entity",
Expand Down Expand Up @@ -667,7 +674,7 @@
"text": "Bezeichnung für eine natürliche oder juristische Person, die für die Auslegung, Herstellung und Verpackung sowie die Etikettierung eines Produkts im Hinblick auf das 'Inverkehrbringen' im eigenen Namen verantwortlich ist"
}
]

}
],
"description": [
Expand All @@ -680,7 +687,7 @@
"text": "Ein Beispiel-BillofMaterial-Submodel für eine Test-Anwendung"
}
]

},
{
"modelType": "Submodel",
Expand Down Expand Up @@ -764,7 +771,7 @@
"text": "Beispiel RelationshipElement Element"
}
]

},
{
"modelType": "AnnotatedRelationshipElement",
Expand Down Expand Up @@ -838,7 +845,7 @@
"text": "Beispiel AnnotatedRelationshipElement Element"
}
]

},
{
"modelType": "Operation",
Expand Down Expand Up @@ -998,7 +1005,7 @@
"text": "Beispiel Operation Element"
}
]

},
{
"modelType": "Capability",
Expand All @@ -1025,7 +1032,7 @@
"text": "Beispiel Capability Element"
}
]

},
{
"modelType": "BasicEventElement",
Expand Down Expand Up @@ -1252,7 +1259,7 @@
],
"value": [
{
"modelType": "Blob",
"modelType": "Blob",
"kind": "Instance",

"contentType": "application/pdf",
Expand Down Expand Up @@ -1370,7 +1377,7 @@
"text": "Ein Beispiel-Teilmodell für eine Test-Anwendung"
}
]

},
{
"modelType": "Submodel",
Expand Down Expand Up @@ -1650,7 +1657,7 @@
"text": "Beispiel RelationshipElement Element"
}
]

},
{
"modelType": "AnnotatedRelationshipElement",
Expand Down Expand Up @@ -1725,7 +1732,7 @@
"text": "Beispiel AnnotatedRelationshipElement Element"
}
]

},
{
"modelType": "Operation",
Expand Down Expand Up @@ -1873,7 +1880,7 @@
"text": "Beispiel Operation Element"
}
]

},
{
"modelType": "Capability",
Expand Down Expand Up @@ -1901,7 +1908,7 @@
"text": "Beispiel Capability Element"
}
]

},
{
"modelType": "BasicEventElement",
Expand Down Expand Up @@ -2231,7 +2238,7 @@
"text": "Ein Beispiel-Teilmodell für eine Test-Anwendung"
}
]

},
{
"modelType": "Submodel",
Expand Down Expand Up @@ -2503,7 +2510,7 @@
"text": "Beispiel Operation Element"
}
]

},
{
"modelType": "Capability",
Expand All @@ -2530,7 +2537,7 @@
"text": "Beispiel Capability Element"
}
]

},
{
"modelType": "BasicEventElement",
Expand Down Expand Up @@ -2859,7 +2866,7 @@
"text": "Beispiel SubmodelElementCollection Element"
}
]

}
],
"description": [
Expand All @@ -2872,7 +2879,7 @@
"text": "Ein Beispiel-Teilmodell für eine Test-Anwendung"
}
]

}
]
}
7 changes: 7 additions & 0 deletions dataformat-json/src/test/resources/Submodel-List.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@
}
],
"idShort": "ManufacturerName",
"checksum": "someCheckSum",
"displayName": [
{
"language": "en-us",
"text": "Manufacturer Name"
}
],
"description": [
{
"language": "en-us",
Expand Down
7 changes: 7 additions & 0 deletions dataformat-json/src/test/resources/submodel.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@
}
],
"idShort": "ManufacturerName",
"checksum": "someCheckSum",
"displayName": [
{
"language": "en-us",
"text": "Manufacturer Name"
}
],
"description": [
{
"language": "en-us",
Expand Down
7 changes: 7 additions & 0 deletions dataformat-json/src/test/resources/submodelElement.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@
}
],
"idShort": "ManufacturerName",
"checksum": "someCheckSum",
"displayName": [
{
"language": "en-us",
"text": "Manufacturer Name"
}
],
"description": [
{
"language": "en-us",
Expand Down
7 changes: 7 additions & 0 deletions dataformat-json/src/test/resources/submodelelement-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@
}
],
"idShort": "ManufacturerName",
"checksum": "someCheckSum",
"displayName": [
{
"language": "en-us",
"text": "Manufacturer Name"
}
],
"description": [
{
"language": "en-us",
Expand Down

0 comments on commit f89aa1e

Please sign in to comment.