12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- import { IStringOptions } from "../options";
- import XmlAttributeText, { IXmlAttributeTextOptions } from "./XmlAttributeText";
- import XmlCharRef, { IXmlCharRefOptions } from "./XmlCharRef";
- import XmlEntityRef, { IXmlEntityRefOptions } from "./XmlEntityRef";
- export interface IXmlAttributeOptions {
-
- name: string;
-
- replaceInvalidCharsInName?: boolean;
- }
- export default class XmlAttribute<Parent> {
- private readonly _children;
- private readonly _replaceInvalidCharsInName;
- private readonly _parent;
- private readonly _validation;
- private _name;
- constructor(parent: Parent, validation: boolean, options: IXmlAttributeOptions);
-
- get name(): string;
-
- set name(name: string);
-
- charRef(options: IXmlCharRefOptions): XmlCharRef<this>;
-
- entityRef(options: IXmlEntityRefOptions): XmlEntityRef<this>;
-
- text(options: IXmlAttributeTextOptions): XmlAttributeText<this>;
-
- toString(options?: IStringOptions): string;
-
- up(): Parent;
- }
|