Skip to content

Commit

Permalink
Generalised EmbeddedDataSpecification (#337)
Browse files Browse the repository at this point in the history
* Update EmbeddedDataSpecification.java

Generalised EmbeddedDataSpecification to comply not only with the IEC 61360 template

* Update EmbeddedDataSpecification.java

Delete unnecessary import
  • Loading branch information
Sebastian Eicke authored Aug 16, 2023
1 parent bc8b76e commit fe79a31
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<String, Object>) get(CONTENT));
return DataSpecificationContent.createAsFacade((Map<String, Object>) get(CONTENT));
}

public void setContent(IDataSpecificationIEC61360Content content) {
public void setContent(IDataSpecificationContent content) {
put(CONTENT, content);
}
}

0 comments on commit fe79a31

Please sign in to comment.