src/aria/core/Interfaces.js
function (def, classpath, member) {
        var res;
        if (typeUtils.isFunction(def)) {
            // should already be normalized:
            return __simpleFunctionDefinition;
        } else if (typeUtils.isString(def)) {
            res = {
                $type : def
            };
        } else if (typeUtils.isArray(def)) {
            return __simpleArrayDefinition;
        } else if (typeUtils.isObject(def)) {
            res = def;
        } else {
            return null;
        }
        var memberType = res.$type;
        if (!__acceptedMemberTypes[memberType]) {
            // the error is logged later
            return null;
        }
        if (!(require("./JsonValidator")).normalize({
            json : res,
            beanName : "aria.core.CfgBeans.ItfMember" + memberType + "Cfg"
        })) {
            return null;
        }
        return res;
    }
function (def, classpath, member) {
        var res;
        if (typeUtils.isFunction(def)) {
            // should already be normalized:
            return __simpleFunctionDefinition;
        } else if (typeUtils.isString(def)) {
            res = {
                $type : def
            };
        } else if (typeUtils.isArray(def)) {
            return __simpleArrayDefinition;
        } else if (typeUtils.isObject(def)) {
            res = def;
        } else {
            return null;
        }
        var memberType = res.$type;
        if (!__acceptedMemberTypes[memberType]) {
            // the error is logged later
            return null;
        }
        if (!(require("./JsonValidator")).normalize({
            json : res,
            beanName : "aria.core.CfgBeans.ItfMember" + memberType + "Cfg"
        })) {
            return null;
        }
        return res;
    }
function ( def , classpath , member ) { var res ; if ( typeUtils . isFunction ( def ) ) { // should already be normalized: return __simpleFunctionDefinition ; } else if ( typeUtils . isString ( def ) ) { res = { $type : def } ; } else if ( typeUtils . isArray ( def ) ) { return __simpleArrayDefinition ; } else if ( typeUtils . isObject ( def ) ) { res = def ; } else { return null ; } var memberType = res . $type ; if ( ! __acceptedMemberTypes [ memberType ] ) { // the error is logged later return null ; } if ( ! ( require ( "./JsonValidator" ) ) . normalize ( { json : res , beanName : "aria.core.CfgBeans.ItfMember" + memberType + "Cfg" } ) ) { return null ; } return res ; }
Normalize interface member definition in the interface.
@param {String|Function|Object|Array} Interface member definition.
@return {Object} json object containing at least the $type property.
@private
Normalize interface member definition in the interface .