UNPKG

typesxml

Version:

Open source XML library written in TypeScript

41 lines 1.22 kB
"use strict"; /******************************************************************************* * Copyright (c) 2023 - 2024 Maxprograms. * * This program and the accompanying materials * are made available under the terms of the Eclipse License 1.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/org/documents/epl-v10.html * * Contributors: * Maxprograms - initial API and implementation *******************************************************************************/ Object.defineProperty(exports, "__esModule", { value: true }); exports.XMLComment = void 0; const Constants_1 = require("./Constants"); class XMLComment { value; constructor(value) { this.value = value; } setValue(value) { this.value = value; } getValue() { return this.value; } getNodeType() { return Constants_1.Constants.COMMENT_NODE; } toString() { return '<!--' + this.value + '-->'; } equals(node) { if (node instanceof XMLComment) { return this.value === node.value; } return false; } } exports.XMLComment = XMLComment; //# sourceMappingURL=XMLComment.js.map