XmlAttributeText.d.ts
2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import { IStringOptions } from "../options";
import XmlNode from "./XmlNode";
/**
* Represents text in an XML attribute value.
*
* Restricted characters, such as the ampersand (`&`) and the opening angle
* bracket (`<`), are all automatically escaped.
*
* To create an character reference or entity reference, you should use
* {@link XmlCharRef} or {@link XmlEntityRef} respectively instead.
*
* XmlAttributeText nodes cannot have any children.
*/
export default class XmlAttributeText extends XmlNode {
private _text;
/**
* Initializes a new instance of the {@link XmlAttributeText} class.
*
* @param text Text.
*/
constructor(text: string);
/**
* Gets the text associated with this node.
*
* @returns The text associated with this node.
*/
/**
* Sets the text associated with this node.
*
* @param text Text.
*/
text: string;
/**
* Throws an exception since {@link XmlAttributeText} nodes cannot have any
* children.
*
* @returns This method does not return.
*/
children(): XmlNode[];
/**
* Throws an exception since {@link XmlAttributeText} nodes cannot have any
* children.
*
* @param node This parameter is unused.
* @param index This parameter is unused.
*
* @returns This method does not return.
*/
insertChild(node: XmlNode, index?: number): XmlNode | undefined;
/**
* Throws an exception since {@link XmlAttributeText} nodes cannot have any
* children.
*
* @param node This parameter is unused.
*
* @returns This method does not return.
*/
removeChild(node: XmlNode): boolean;
/**
* Throws an exception since {@link XmlAttributeText} nodes cannot have any
* children.
*
* @param index This parameter is unused.
*
* @returns This method does not return.
*/
removeChildAtIndex(index: number): XmlNode;
/**
* Returns an XML string representation of this node.
*
* @param options Formatting options for the string representation.
*
* @returns {string} An XML string representation of this node.
*/
toString(options?: IStringOptions): string;
}