"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const CoreTestModel_1 = require("../CoreTestModel");
class CoreTestAttributeType extends CoreTestModel_1.CoreTestModelElement {
    constructor(n) {
        super();
        this.literalName = n;
    }
    asString() {
        return this.literalName;
    }
    static fromString(v) {
        if (v === "String")
            return CoreTestAttributeType.String;
        if (v === "Integer")
            return CoreTestAttributeType.Integer;
        if (v === "Boolean")
            return CoreTestAttributeType.Boolean;
        if (v === "Any")
            return CoreTestAttributeType.Any;
        console.error("cannot create CoreTestAttributeType from " + v);
        return CoreTestAttributeType.Any;
    }
}
exports.CoreTestAttributeType = CoreTestAttributeType;
CoreTestAttributeType.String = new CoreTestAttributeType("String");
CoreTestAttributeType.Integer = new CoreTestAttributeType("Integer");
CoreTestAttributeType.Boolean = new CoreTestAttributeType("Boolean");
CoreTestAttributeType.Any = new CoreTestAttributeType("Any");
//# sourceMappingURL=CoreTestAttributeType.js.map