"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const ModelInfoMap_1 = require("./ModelInfoMap");
class ModelInfo {
    static addClass(className, constructor) {
        if (!this.constructors.has(className)) {
            this.constructors.set(className, constructor);
            this.Constructors1[className] = constructor;
        }
        else {
            console.error("@model decorator: class " + className + " defined twice");
        }
    }
    static cls(className) {
        const entry = this.constructors.get(className);
        if (entry === undefined) {
            return null;
        }
        else {
            return entry;
        }
    }
}
exports.ModelInfo = ModelInfo;
ModelInfo.listReferences = new ModelInfoMap_1.ModelInfoMap();
ModelInfo.references = new ModelInfoMap_1.ModelInfoMap();
ModelInfo.parts = new ModelInfoMap_1.ModelInfoMap();
ModelInfo.listparts = new ModelInfoMap_1.ModelInfoMap();
ModelInfo.constructors = new Map();
ModelInfo.Constructors1 = {};
//# sourceMappingURL=ModelInfo.js.map