src/aria/core/JsonTypesCheck.js
function (beanDef, beanName, packageDef) {
        var contentType = beanDef.$contentType;
        var parentContentType = null;
        var parent = beanDef[jv._MD_PARENTDEF];
        if (!parent[jv._MD_BUILTIN]) {
            parentContentType = parent.$contentType;
            if (contentType == null) {
                beanDef.$contentType = parentContentType;
                return;
            }
        } else if (contentType == null) {
            jv._logError(jv.MISSING_CONTENTTYPE, [beanDef[jv._MD_BASETYPE].typeName, beanDef[jv._MD_TYPENAME]]);
            beanDef[jv._MD_BASETYPE] = jv._typeError;
            return;
        }
        jv._preprocessBean(contentType, beanName + ".$contentType", packageDef);
        if (parentContentType != null) {
            __checkInheritance(parentContentType, contentType);
        }
    }
function (beanDef, beanName, packageDef) {
        var contentType = beanDef.$contentType;
        var parentContentType = null;
        var parent = beanDef[jv._MD_PARENTDEF];
        if (!parent[jv._MD_BUILTIN]) {
            parentContentType = parent.$contentType;
            if (contentType == null) {
                beanDef.$contentType = parentContentType;
                return;
            }
        } else if (contentType == null) {
            jv._logError(jv.MISSING_CONTENTTYPE, [beanDef[jv._MD_BASETYPE].typeName, beanDef[jv._MD_TYPENAME]]);
            beanDef[jv._MD_BASETYPE] = jv._typeError;
            return;
        }
        jv._preprocessBean(contentType, beanName + ".$contentType", packageDef);
        if (parentContentType != null) {
            __checkInheritance(parentContentType, contentType);
        }
    }
function ( beanDef , beanName , packageDef ) { var contentType = beanDef . $contentType ; var parentContentType = null ; var parent = beanDef [ jv . _MD_PARENTDEF ] ; if ( ! parent [ jv . _MD_BUILTIN ] ) { parentContentType = parent . $contentType ; if ( contentType == null ) { beanDef . $contentType = parentContentType ; return ; } } else if ( contentType == null ) { jv . _logError ( jv . MISSING_CONTENTTYPE , [ beanDef [ jv . _MD_BASETYPE ] . typeName , beanDef [ jv . _MD_TYPENAME ] ] ) ; beanDef [ jv . _MD_BASETYPE ] = jv . _typeError ; return ; } jv . _preprocessBean ( contentType , beanName + ".$contentType" , packageDef ) ; if ( parentContentType != null ) { __checkInheritance ( parentContentType , contentType ) ; } }
Preprocess the content type of the given bean definition
@private
@param {aria.core.BaseTypes:Bean} beanDef bean to be preprocessed
@param {String} beanName fully qualified name for this bean
@param {aria.core.BaseTypes:Package} packageDef reference package
Preprocess the content type of the given bean definition