src/aria/core/JsonValidator.js
function (def) {

                // prepare error stack
                this._errors = [];

                var beans = def.$beans;
                for (var beanName in beans) {
                    if (!beans.hasOwnProperty(beanName) || beanName.indexOf(':') != -1) {
                        continue;
                    }
                    // check that keys for beans are valid
                    if (!Aria.checkJsVarName(beanName)) {
                        this._logError(this.INVALID_NAME, [beanName, this._currentBeanName]);
                    }
                    this._preprocessBean(beans[beanName], def.$package + "." + beanName, def);
                }

                // Generate fast normalization functions at the end:
                var toGenerateFastNorm = this.__toGenerateFastNorm;
                while (toGenerateFastNorm.length > 0) {
                    var beanDef = toGenerateFastNorm.shift();
                    var baseType = beanDef[this._MD_BASETYPE];

                    if (baseType.makeFastNorm) {
                        // generate fast normalizer
                        baseType.makeFastNorm(beanDef);
                    }
                }

                return this._errors;
            }
function (def) {

                // prepare error stack
                this._errors = [];

                var beans = def.$beans;
                for (var beanName in beans) {
                    if (!beans.hasOwnProperty(beanName) || beanName.indexOf(':') != -1) {
                        continue;
                    }
                    // check that keys for beans are valid
                    if (!Aria.checkJsVarName(beanName)) {
                        this._logError(this.INVALID_NAME, [beanName, this._currentBeanName]);
                    }
                    this._preprocessBean(beans[beanName], def.$package + "." + beanName, def);
                }

                // Generate fast normalization functions at the end:
                var toGenerateFastNorm = this.__toGenerateFastNorm;
                while (toGenerateFastNorm.length > 0) {
                    var beanDef = toGenerateFastNorm.shift();
                    var baseType = beanDef[this._MD_BASETYPE];

                    if (baseType.makeFastNorm) {
                        // generate fast normalizer
                        baseType.makeFastNorm(beanDef);
                    }
                }

                return this._errors;
            }
function ( def ) { // prepare error stack this . _errors = [ ] ; var beans = def . $beans ; for ( var beanName in beans ) { if ( ! beans . hasOwnProperty ( beanName ) || beanName . indexOf ( ':' ) != - 1 ) { continue ; } // check that keys for beans are valid if ( ! Aria . checkJsVarName ( beanName ) ) { this . _logError ( this . INVALID_NAME , [ beanName , this . _currentBeanName ] ) ; } this . _preprocessBean ( beans [ beanName ] , def . $package + "." + beanName , def ) ; } // Generate fast normalization functions at the end: var toGenerateFastNorm = this . __toGenerateFastNorm ; while ( toGenerateFastNorm . length > 0 ) { var beanDef = toGenerateFastNorm . shift ( ) ; var baseType = beanDef [ this . _MD_BASETYPE ] ; if ( baseType . makeFastNorm ) { // generate fast normalizer baseType . makeFastNorm ( beanDef ) ; } } return this . _errors ; }
Main function to preprocess a bean package definition. All dependencies should have already bean loaded.
@param {aria.core.BaseTypes:Package} def
Main function to preprocess a bean package definition . All dependencies should have already bean loaded .