function [b, exception, val] = validateWidgetValue(hDlg, tag, validator, hRegister)
%VALIDATEWIDGETVALUE Define the VALIDATEWIDGETVALUE class.

%   Copyright 2012 The MathWorks, Inc.

if nargin < 4
    hRegister = hDlg.getSource.Register;
end

[b, exception, val] = uiservices.validateWidgetValue(hDlg, tag, ...
    validator, hRegister.Name);

% [EOF]
