src/aria/core/JsonTypesCheck.js
function (beanDef) {
        var parent = beanDef[jv._MD_PARENTDEF];
        if (typeof(parent.$minValue) != "undefined") {
            if (typeof(beanDef.$minValue) == "undefined") {
                beanDef.$minValue = parent.$minValue;
            } else if (beanDef.$minValue < parent.$minValue) {
                jv._logError(jv.NUMBER_INVALID_INHERITANCE, ["$minValue", beanDef[jv._MD_TYPENAME]]);
            }
        }
        if (typeof(parent.$maxValue) != "undefined") {
            if (typeof(beanDef.$maxValue) == "undefined") {
                beanDef.$maxValue = parent.$maxValue;
            } else if (beanDef.$maxValue > parent.$maxValue) {
                jv._logError(jv.NUMBER_INVALID_INHERITANCE, ["$maxValue", beanDef[jv._MD_TYPENAME]]);
            }
        }
        if (typeof(beanDef.$minValue) != "undefined" && typeof(beanDef.$maxValue) != "undefined"
                && beanDef.$minValue > beanDef.$maxValue) {
            jv._logError(jv.NUMBER_INVALID_RANGE, [beanDef[jv._MD_TYPENAME], beanDef.$minValue, beanDef.$maxValue]);
        }
    }
function (beanDef) {
        var parent = beanDef[jv._MD_PARENTDEF];
        if (typeof(parent.$minValue) != "undefined") {
            if (typeof(beanDef.$minValue) == "undefined") {
                beanDef.$minValue = parent.$minValue;
            } else if (beanDef.$minValue < parent.$minValue) {
                jv._logError(jv.NUMBER_INVALID_INHERITANCE, ["$minValue", beanDef[jv._MD_TYPENAME]]);
            }
        }
        if (typeof(parent.$maxValue) != "undefined") {
            if (typeof(beanDef.$maxValue) == "undefined") {
                beanDef.$maxValue = parent.$maxValue;
            } else if (beanDef.$maxValue > parent.$maxValue) {
                jv._logError(jv.NUMBER_INVALID_INHERITANCE, ["$maxValue", beanDef[jv._MD_TYPENAME]]);
            }
        }
        if (typeof(beanDef.$minValue) != "undefined" && typeof(beanDef.$maxValue) != "undefined"
                && beanDef.$minValue > beanDef.$maxValue) {
            jv._logError(jv.NUMBER_INVALID_RANGE, [beanDef[jv._MD_TYPENAME], beanDef.$minValue, beanDef.$maxValue]);
        }
    }
function ( beanDef ) { var parent = beanDef [ jv . _MD_PARENTDEF ] ; if ( typeof ( parent . $minValue ) != "undefined" ) { if ( typeof ( beanDef . $minValue ) == "undefined" ) { beanDef . $minValue = parent . $minValue ; } else if ( beanDef . $minValue < parent . $minValue ) { jv . _logError ( jv . NUMBER_INVALID_INHERITANCE , [ "$minValue" , beanDef [ jv . _MD_TYPENAME ] ] ) ; } } if ( typeof ( parent . $maxValue ) != "undefined" ) { if ( typeof ( beanDef . $maxValue ) == "undefined" ) { beanDef . $maxValue = parent . $maxValue ; } else if ( beanDef . $maxValue > parent . $maxValue ) { jv . _logError ( jv . NUMBER_INVALID_INHERITANCE , [ "$maxValue" , beanDef [ jv . _MD_TYPENAME ] ] ) ; } } if ( typeof ( beanDef . $minValue ) != "undefined" && typeof ( beanDef . $maxValue ) != "undefined" && beanDef . $minValue > beanDef . $maxValue ) { jv . _logError ( jv . NUMBER_INVALID_RANGE , [ beanDef [ jv . _MD_TYPENAME ] , beanDef . $minValue , beanDef . $maxValue ] ) ; } }
Common preprocessing function for floats and integers.
@private
@param {aria.core.BaseTypes:Bean} beanDef
Common preprocessing function for floats and integers .