src/definition/domain/container.js
function setDomain(domain) {
    checkIsObject('domain', domain);
    checkIsString('doamin.name', domain.name);
    //test domain, domain.name
    domainsMap = domainsMap.set(domain.name, domain);
}
function setDomain(domain) {
    checkIsObject('domain', domain);
    checkIsString('doamin.name', domain.name);
    //test domain, domain.name
    domainsMap = domainsMap.set(domain.name, domain);
}
function setDomain ( domain ) { checkIsObject ( 'domain' , domain ) ; checkIsString ( 'doamin.name' , domain . name ) ; //test domain, domain.name domainsMap = domainsMap . set ( domain . name , domain ) ; }
Set a domain.
@param {object} domain - Object structure of the domain.
Set a domain .