Skip to content

Add a setter function for base.HasKind.kind #312

@s-heppner

Description

@s-heppner

Previously, we could not have a setter function for base.HasKind.kind due to the fact, that if the kind of a Submodel changed, we would have to recursivly adapt all the contained SubmodelElement.kind.

With version 3.0 of the specification, SubmodelElement.kind was removed, so therefore there's no reason now not to offer a setter for base.HasKind.kind.

We should note a warning at base.HasKind though, if future versions of the specification add `HasKind somewhere else again, since that would reintroduce the problem of setting it.

This was found due to the question in #300.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhancement of an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions