classdef (Hidden) ObjectProperty < target.Property

    properties (Dependent, Hidden)
        Value target.Data {mustBeScalarOrEmpty}
    end

    methods

        function value = get.Value(this)
            value = this.wrapValue(this.InnerInstance.Value);
        end

        function set.Value(this, value)
            this.InnerInstance.Value = this.unwrapValue(value, this.InnerInstance.Value);
        end
    end

    methods (Static, Access = protected)

        function name = getQualifiedName()
            name = "target.ObjectProperty";
        end

        function name = getQualifiedInnerName()
            name = "target.internal.ObjectProperty";
        end
    end
end

%   Copyright 2021-2022 The MathWorks, Inc.