@lcap/asl
Version:
NetEase Application Specific Language
52 lines • 1.8 kB
JavaScript
;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataNode = void 0;
const decorators_1 = require("../decorators");
const __1 = require("..");
/**
* 数据分类
*/
class DataNode extends __1.Vertex {
/**
* @param source 需要合并的部分参数
*/
constructor(source) {
super();
/**
* 概念类型
*/
this.level = __1.LEVEL_ENUM.dataNode;
this.type = undefined;
this.entities = [];
this.structures = [];
this.enums = [];
this.erdiagrams = [];
this.entityExpanded = true;
this.structureExpanded = true;
this.enumExpanded = true;
this.service = undefined;
source && this.assign(source);
}
}
__decorate([
decorators_1.immutable()
], DataNode.prototype, "level", void 0);
__decorate([
decorators_1.immutable()
], DataNode.prototype, "type", void 0);
__decorate([
decorators_1.immutable()
], DataNode.prototype, "entities", void 0);
__decorate([
decorators_1.circular(),
decorators_1.immutable()
], DataNode.prototype, "service", void 0);
exports.DataNode = DataNode;
exports.default = DataNode;
//# sourceMappingURL=DataNode.js.map