Skip to content

Unable to deserialize the nested embeddedDataSpecifications #389

Description

@mdanish98

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);
    }
Image

annotatedRelationshipElement.xml.zip

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions