UNPKG

@yellicode/elements

Version:

The meta model API for Yellicode - an extensible code generator.

76 lines (75 loc) 2.5 kB
/** * Implements a simple data type that has no behavior. */ var SimpleDataType = /** @class */ (function () { function SimpleDataType(id, name, elementType) { this.id = id; this.name = name; this.elementType = elementType; this.visibility = null; this.ownedAttributes = []; this.ownedOperations = []; this.generalizations = []; this.isAbstract = false; this.isFinalSpecialization = false; this.appliedStereotypes = []; this.ownedComments = []; this.owner = null; this.taggedValues = []; this.isLeaf = false; this.isInferred = false; this.isDeprecated = false; } SimpleDataType.prototype.isOrphaned = function () { // this type has no owner, so keep it simple return !!this.isDeleted; }; Object.defineProperty(SimpleDataType.prototype, "package", { get: function () { throw "The " + this.name + " data type has no package."; }, enumerable: false, configurable: true }); SimpleDataType.prototype.getFirstCommentBody = function () { return ''; }; SimpleDataType.prototype.getAllParents = function () { throw new Error('Method not implemented.'); }; SimpleDataType.prototype.getAllSpecializations = function () { throw new Error('Method not implemented.'); }; SimpleDataType.prototype.getFirstGeneralization = function () { return null; }; SimpleDataType.prototype.getFirstParent = function () { return null; }; SimpleDataType.prototype.getParents = function () { return []; }; SimpleDataType.prototype.getSpecializations = function () { return []; }; SimpleDataType.prototype.getNamespaceName = function (separator) { return ''; }; SimpleDataType.prototype.getNestingPackages = function () { return []; }; SimpleDataType.prototype.getQualifiedName = function (separator) { return this.name; }; SimpleDataType.prototype.getAllAttributes = function () { return []; }; SimpleDataType.prototype.getAllOperations = function () { return []; }; SimpleDataType.prototype.getSuperTypes = function () { throw new Error('Method not implemented.'); }; return SimpleDataType; }()); export { SimpleDataType };