Search in sources :

Example 1 with I4AASDeserializer

use of io.adminshell.aas.v3.dataformat.i4aas.I4AASDeserializer in project FAAAST-Service by FraunhoferIOSB.

the class AASEnvironmentFactory method initDeserializer.

private void initDeserializer() {
    // TODO: AASX Deserializer seems to be a little bit different since it needs an input in constructor
    deserializer = new HashMap<>();
    deserializer.put("JSON", new JsonDeserializer());
    deserializer.put("AML", new AmlDeserializer());
    deserializer.put("XML", new XmlDeserializer());
    deserializer.put("I4AAS/OPC UA Nodeset", new I4AASDeserializer());
    deserializer.put("RDF", new io.adminshell.aas.v3.dataformat.rdf.Serializer());
    deserializer.put("JSON-LD", new io.adminshell.aas.v3.dataformat.jsonld.Serializer());
}
Also used : AmlDeserializer(io.adminshell.aas.v3.dataformat.aml.AmlDeserializer) XmlDeserializer(io.adminshell.aas.v3.dataformat.xml.XmlDeserializer) I4AASDeserializer(io.adminshell.aas.v3.dataformat.i4aas.I4AASDeserializer) JsonDeserializer(io.adminshell.aas.v3.dataformat.json.JsonDeserializer)

Example 2 with I4AASDeserializer

use of io.adminshell.aas.v3.dataformat.i4aas.I4AASDeserializer in project FAAAST-Service by FraunhoferIOSB.

the class StarterTest method testGetAASEnvironmentFromFileOPCUA.

@Test
@Ignore
public void testGetAASEnvironmentFromFileOPCUA() throws IOException, DeserializationException, Exception {
    String filePath = "src/test/resources/AASSimple.xml";
    testAASEnvironment(filePath, new I4AASDeserializer());
}
Also used : I4AASDeserializer(io.adminshell.aas.v3.dataformat.i4aas.I4AASDeserializer) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

I4AASDeserializer (io.adminshell.aas.v3.dataformat.i4aas.I4AASDeserializer)2 AmlDeserializer (io.adminshell.aas.v3.dataformat.aml.AmlDeserializer)1 JsonDeserializer (io.adminshell.aas.v3.dataformat.json.JsonDeserializer)1 XmlDeserializer (io.adminshell.aas.v3.dataformat.xml.XmlDeserializer)1 Ignore (org.junit.Ignore)1 Test (org.junit.Test)1