|
10 | 10 | % SECTION Metadata Section class
|
11 | 11 | % NIX metadata section
|
12 | 12 |
|
13 |
| - properties(Hidden) |
| 13 | + properties (Hidden) |
14 | 14 | % namespace reference for nix-mx functions
|
15 | 15 | alias = 'Section'
|
16 | 16 | end
|
|
143 | 143 | function r = delete_property(obj, del)
|
144 | 144 | if (isstruct(del) && isfield(del, 'id'))
|
145 | 145 | delID = del.id;
|
146 |
| - elseif (strcmp(class(del), 'nix.Property')) |
| 146 | + elseif (isa(del, 'nix.Property')) |
147 | 147 | delID = del.id;
|
148 | 148 | else
|
149 | 149 | delID = del;
|
|
203 | 203 | % Referring utility method
|
204 | 204 | % ----------------
|
205 | 205 |
|
206 |
| - methods(Access=protected) |
| 206 | + methods (Access=protected) |
207 | 207 | % referring_util receives a nix entityConstructor, part of a function
|
208 | 208 | % name and varargin to provide abstract access to nix.Section
|
209 | 209 | % referringXXX and referringXXX(Block) methods.
|
210 | 210 | function r = referring_util(obj, entityConstructor, fsuffix, varargin)
|
211 | 211 | if (isempty(varargin))
|
212 | 212 | fname = strcat(obj.alias, '::referring', fsuffix);
|
213 | 213 | r = nix.Utils.fetchObjList(fname, obj.nix_handle, entityConstructor);
|
214 |
| - elseif ((size(varargin, 2) > 1) || ... |
215 |
| - (~strcmp(class(varargin{1}), 'nix.Block'))) |
| 214 | + elseif ((size(varargin, 2) > 1) || (~isa(varargin{1}, 'nix.Block'))) |
216 | 215 | error('Provide either empty arguments or a single Block entity');
|
217 | 216 | else
|
218 | 217 | fname = strcat(obj.alias, '::referringBlock', fsuffix);
|
|
0 commit comments