@openxmldev/linq-to-xml
Version:
LINQ to XML for TypeScript
32 lines • 620 B
JavaScript
/**
* @author Thomas Barnekow
* @license MIT
*/
import { XNode } from './internal.js';
/**
* Represents a text node.
*/
export class XText extends XNode {
constructor(value) {
super();
this._text = value;
}
get value() {
return this._text;
}
set value(text) {
this._text = text;
}
/** @internal */
appendText(sb) {
sb.append(this._text);
}
/** @internal */
cloneNode() {
return new XText(this._text);
}
toString() {
return this._text;
}
}
//# sourceMappingURL=XText.js.map