|
| 1 | +/* |
| 2 | + * -------------------------------------------------------------------------------- |
| 3 | + * <copyright company="Aspose" file="commentRangeStart.ts"> |
| 4 | + * Copyright (c) 2025 Aspose.Words for Cloud |
| 5 | + * </copyright> |
| 6 | + * <summary> |
| 7 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 8 | + * of this software and associated documentation files (the "Software"), to deal |
| 9 | + * in the Software without restriction, including without limitation the rights |
| 10 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 11 | + * copies of the Software, and to permit persons to whom the Software is |
| 12 | + * furnished to do so, subject to the following conditions: |
| 13 | + * |
| 14 | + * The above copyright notice and this permission notice shall be included in all |
| 15 | + * copies or substantial portions of the Software. |
| 16 | + * |
| 17 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 18 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 19 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 20 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 21 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 22 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 23 | + * SOFTWARE. |
| 24 | + * </summary> |
| 25 | + * -------------------------------------------------------------------------------- |
| 26 | + */ |
| 27 | + |
| 28 | +import { AttributeInfo } from '../internal/attributeInfo'; |
| 29 | +import { ModelInterface } from './modelInterface'; |
| 30 | +import { CommentLink } from './commentLink'; |
| 31 | +import { NodeLink } from './nodeLink'; |
| 32 | + |
| 33 | +export const importsMapCommentRangeStart = { |
| 34 | + CommentLink, |
| 35 | + NodeLink, |
| 36 | +}; |
| 37 | + |
| 38 | +/** |
| 39 | + * Comment range start link. |
| 40 | + */ |
| 41 | +export class CommentRangeStart extends NodeLink { |
| 42 | + /** |
| 43 | + * Attribute type map |
| 44 | + */ |
| 45 | + public static attributeTypeMap: Array<AttributeInfo> = [ |
| 46 | + { |
| 47 | + name: "commentLink", |
| 48 | + baseName: "CommentLink", |
| 49 | + type: "CommentLink", |
| 50 | + } |
| 51 | + ]; |
| 52 | + |
| 53 | + /** |
| 54 | + * Returns attribute type map |
| 55 | + */ |
| 56 | + public static getAttributeTypeMap() { |
| 57 | + return super.getAttributeTypeMap().concat(CommentRangeStart.attributeTypeMap); |
| 58 | + } |
| 59 | + |
| 60 | + /** |
| 61 | + * Gets or sets the link to comment. |
| 62 | + */ |
| 63 | + public commentLink: CommentLink; |
| 64 | + |
| 65 | + public constructor(init?: Partial< CommentRangeStart >) { |
| 66 | + super(init); |
| 67 | + Object.assign(this, init); |
| 68 | + } |
| 69 | + |
| 70 | + public collectFilesContent(_resultFilesContent: Array<any>) { |
| 71 | + } |
| 72 | + |
| 73 | + public validate() { |
| 74 | + super.validate(); |
| 75 | + |
| 76 | + this.commentLink?.validate(); |
| 77 | + |
| 78 | + } |
| 79 | +} |
| 80 | + |
0 commit comments