Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding CustomDataspecification Feature and UnitTests #207

Conversation

sebbader-sap
Copy link
Contributor

No description provided.

@sebbader-sap
Copy link
Contributor Author

Soves #14

@sebbader-sap sebbader-sap requested review from FrankSchnicke and mjacoby and removed request for FrankSchnicke November 21, 2023 15:11

private DataSpecificationIec61360 createDefaultDataSpecificationIec61360FromNode(JsonParser parser, JsonNode nodeContent) throws IOException {
return DeserializationHelper.createInstanceFromNode(parser, nodeContent, DefaultDataSpecificationIec61360.class);
return null;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

throw exception

* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.eclipse.digitaltwin.aas4j.v3.model;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to model

* reuse same environment for JSON and XML tests
* rename DataSpecification to DummyDataSpecfication
@sebbader-sap
Copy link
Contributor Author

@FrankSchnicke
Copy link
Contributor

@FrankSchnicke I just uploaded the changes about which we talked yesterday. I am still struggling with https://github.com/sap-contributions/aas4j/blob/c33a3aaf8db2e52c0b5593917095d6aa09c60a27/dataformat-xml/src/main/java/org/eclipse/digitaltwin/aas4j/v3/dataformat/xml/serialization/EmbeddedDataSpecificationSerializer.java#L45 but just don't have a better idea.

By defining it as mandatory to extend/implement the CustomDataSpecification interface I think we have a good starting point for version 1. We can extend this in future to support a more flexible model.

@FrankSchnicke FrankSchnicke merged commit f1bdbab into eclipse-aas4j:main Dec 5, 2023
2 checks passed
@mjacoby
Copy link
Contributor

mjacoby commented Dec 6, 2023

Another way to approach this problem would be to use annotations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants