From fe79a31d77a359eef493a32d86446a30c416efa0 Mon Sep 17 00:00:00 2001 From: Sebastian Eicke <134835859+seicke-harting@users.noreply.github.com> Date: Wed, 16 Aug 2023 13:04:26 +0200 Subject: [PATCH] Generalised EmbeddedDataSpecification (#337) * Update EmbeddedDataSpecification.java Generalised EmbeddedDataSpecification to comply not only with the IEC 61360 template * Update EmbeddedDataSpecification.java Delete unnecessary import --- .../map/dataspecification/EmbeddedDataSpecification.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/eclipse/basyx/submodel/metamodel/map/dataspecification/EmbeddedDataSpecification.java b/src/main/java/org/eclipse/basyx/submodel/metamodel/map/dataspecification/EmbeddedDataSpecification.java index 79520d67..291dd88d 100644 --- a/src/main/java/org/eclipse/basyx/submodel/metamodel/map/dataspecification/EmbeddedDataSpecification.java +++ b/src/main/java/org/eclipse/basyx/submodel/metamodel/map/dataspecification/EmbeddedDataSpecification.java @@ -27,7 +27,6 @@ import java.util.Map; import org.eclipse.basyx.submodel.metamodel.api.dataspecification.IDataSpecificationContent; -import org.eclipse.basyx.submodel.metamodel.api.dataspecification.IDataSpecificationIEC61360Content; import org.eclipse.basyx.submodel.metamodel.api.dataspecification.IEmbeddedDataSpecification; import org.eclipse.basyx.submodel.metamodel.api.reference.IReference; import org.eclipse.basyx.submodel.metamodel.map.reference.Reference; @@ -68,12 +67,10 @@ public void setDataSpecificationTemplate(IReference ref) { @SuppressWarnings("unchecked") @Override public IDataSpecificationContent getContent() { - // Assume the concent complies to the IEC61360 template - // => only this template is supported currently - return DataSpecificationIEC61360Content.createAsFacade((Map) get(CONTENT)); + return DataSpecificationContent.createAsFacade((Map) get(CONTENT)); } - public void setContent(IDataSpecificationIEC61360Content content) { + public void setContent(IDataSpecificationContent content) { put(CONTENT, content); } }