src/ecore.js
function(attributes) {
    if (!attributes) attributes = {};

    this.eClass = attributes.eClass;
    this.values = {};

    // stores function for eOperations.
    attributes._ && (this._ = attributes._);

    // Initialize values according to the eClass features.
    initValues(this);
    setValues(this, attributes);
    initOperations(this);

    return this;
}
function(attributes) {
    if (!attributes) attributes = {};

    this.eClass = attributes.eClass;
    this.values = {};

    // stores function for eOperations.
    attributes._ && (this._ = attributes._);

    // Initialize values according to the eClass features.
    initValues(this);
    setValues(this, attributes);
    initOperations(this);

    return this;
}
function ( attributes ) { if ( ! attributes ) attributes = { } ; this . eClass = attributes . eClass ; this . values = { } ; // stores function for eOperations. attributes . _ && ( this . _ = attributes . _ ) ; // Initialize values according to the eClass features. initValues ( this ) ; setValues ( this , attributes ) ; initOperations ( this ) ; return this ; }
EObject  Implementation of EObject. The constructor takes as parameter a hash containing values to be set. Values must be defined accordingly to the eClass features.
EObject Implementation of EObject . The constructor takes as parameter a hash containing values to be set . Values must be defined accordingly to the eClass features .