Skip to content

Commit

Permalink
Add function createLabelForMissingLabelDefinition to abstract Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ehennestad committed Nov 13, 2024
1 parent b7adf56 commit 7e7ab4b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/internal/+openminds/+abstract/Schema.m
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,11 @@ function assignInstanceId(obj, id)
displayLabel = sprintf("%s", str);
end

function str = createLabelForMissingLabelDefinition(obj)
classNames = split( class(obj), '.');
str = sprintf('<Unlabeled %s>', classNames{end});

Check warning on line 565 in code/internal/+openminds/+abstract/Schema.m

View check run for this annotation

Codecov / codecov/patch

code/internal/+openminds/+abstract/Schema.m#L564-L565

Added lines #L564 - L565 were not covered by tests
end

function annotation = getAnnotation(obj)

import openminds.internal.utility.getSchemaDocLink
Expand Down

0 comments on commit 7e7ab4b

Please sign in to comment.