1function addItemSet(self, itemSet)
4if sum(cellfun(@(x) strcmp(x.name, itemSet.name), self.items))>0
5 line_error(mfilename,sprintf(
'An item type with name %s already exists.\n', itemSet.name));
7nItemSet = size(self.items,1);
8itemSet.index = nItemSet+1;
9self.items{end+1,1} = itemSet;
10self.setUsedLangFeature(
class(itemSet));