tcx-builder
Version:
42 lines (41 loc) • 1.89 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var _common_1 = require("../_common");
var AbstractSourceAttributes_1 = require("./AbstractSourceAttributes");
var AbstractSource_1 = require("./AbstractSource");
var Application = /** @class */ (function (_super) {
__extends(Application, _super);
function Application(options) {
var _this = this;
var attributes = new AbstractSourceAttributes_1.AbstractSourceAttributes('Application_t');
_this = _super.call(this, attributes, options.name) || this;
_this.attributes = attributes;
_this.Build = options.build;
_this.LangID = options.langID;
_this.PartNumber = options.partNumber || '000-00000-00';
return _this;
}
Application.prototype.toXml = function () {
var xmlElement = '';
xmlElement += _common_1.BaseObject.buildXmlNode('Name', this.Name);
xmlElement += _common_1.BaseObject.buildXmlNode('Build', this.Build.toXml());
xmlElement += _common_1.BaseObject.buildXmlNode('LangID', this.LangID);
xmlElement += _common_1.BaseObject.buildXmlNode('PartNumber', this.PartNumber);
return xmlElement;
};
return Application;
}(AbstractSource_1.AbstractSource));
exports.Application = Application;