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 authored Nov 13, 2024
1 parent b7adf56 commit 6e17260
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});
end

function annotation = getAnnotation(obj)

import openminds.internal.utility.getSchemaDocLink
Expand Down

0 comments on commit 6e17260

Please sign in to comment.