first
This commit is contained in:
23
node_modules/@rgrove/parse-xml/dist/lib/XmlText.js
generated
vendored
Normal file
23
node_modules/@rgrove/parse-xml/dist/lib/XmlText.js
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.XmlText = void 0;
|
||||
const XmlNode_js_1 = require("./XmlNode.js");
|
||||
/**
|
||||
* Text content within an XML document.
|
||||
*/
|
||||
class XmlText extends XmlNode_js_1.XmlNode {
|
||||
constructor(text = '') {
|
||||
super();
|
||||
this.text = text;
|
||||
}
|
||||
get type() {
|
||||
return XmlNode_js_1.XmlNode.TYPE_TEXT;
|
||||
}
|
||||
toJSON() {
|
||||
return Object.assign(XmlNode_js_1.XmlNode.prototype.toJSON.call(this), {
|
||||
text: this.text,
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.XmlText = XmlText;
|
||||
//# sourceMappingURL=XmlText.js.map
|
||||
Reference in New Issue
Block a user