There is an issue in AAS4J in the current version, it is unable to deserialize the embeddedDataSpecifications inside all the SubmodelElements, I checked for the following:
- AnnotatedRelationshipElement
- BasicEventElement/Blob
- Capability/Entity
- File
- MultiLanguageProperty
- Operation
- Property
- Range
- ReferenceElement
- RelationshipElement
- SubmodelElementCollection
- SubmodelElementList.
Following is the piece of code that I used to check the behaviour with the attached test file:
public void deserializationTest() throws IOException, DeserializationException {
String envXml = new String(Files.readAllBytes(Paths.get("src/test/resources/annotatedRelationshipElement.xml")));
Environment env = new XmlDeserializer().read(envXml);
}
annotatedRelationshipElement.xml.zip
There is an issue in AAS4J in the current version, it is unable to deserialize the embeddedDataSpecifications inside all the SubmodelElements, I checked for the following:
Following is the piece of code that I used to check the behaviour with the attached test file:
annotatedRelationshipElement.xml.zip