function schema

pk = findpackage('cv');

%   Copyright 2007-2015 The MathWorks, Inc.

c = schema.class(pk,'cvtestgroup');

visibility = 'on'; 
privateVisibility = 'off'; 

%--------------------------------------------------------------------------
% Enumerated Data types
%--------------------------------------------------------------------------

%--------------------------------------------------------------------------
% Public Properties
%--------------------------------------------------------------------------
p = schema.prop(c, 'name', 'string');
p.FactoryValue = '';
p.Visible = visibility;  


%--------------------------------------------------------------------------
% Private Properties
%--------------------------------------------------------------------------
p = schema.prop(c, 'm_data', 'mxArray');
p.FactoryValue = [];
p.AccessFlags.PublicSet = 'off';
p.Visible = privateVisibility;  
p.GetFunction = @lGetInternalMap;


%--------------------------------------------------------------------------
% Methods
%--------------------------------------------------------------------------
function val = lGetInternalMap(~, val)
if ~isa(val, 'containers.Map')
    val = containers.Map('KeyType', 'char', 'ValueType', 'any');
end
