You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Define validator method for readonly props
Some readonly props are inherited from superclasses where the same prop is settable. This will override the validator method for such a property to throw an error if someone tries to set a readonly property
* remove debug try/catch
* Fix bug with datetime conversion
* Update linkTest.m
Fix test that broke because of current PR
* Minor fixes
Only add validator for inherited readonly props
Also support boolean read only property values
errorStr = sprintf( 'error(''Unable to set the ''''%s'''' property of class ''''<a href="matlab:doc %s">%s</a>'''' because it is read-only.'')', name, className, shortName);
299
+
300
+
if ischar(value)
301
+
condition = strjoin({ ...
302
+
sprintf('if isequal(val, ''%s'')', value), ...
303
+
sprintf(' val = ''%s'';', value ), ...
304
+
'else' }, newline);
305
+
elseif isnumeric(value) || islogical(value)
306
+
condition = strjoin({ ...
307
+
sprintf('if isequal(val, %d)', value), ...
308
+
sprintf(' val = %d;', value ), ...
309
+
'else' }, newline);
310
+
else
311
+
% Note: According to the documentation for Attribute specification keys
0 commit comments