-
Notifications
You must be signed in to change notification settings - Fork 208
/
ClassSpecifications.ts
54 lines (49 loc) · 1.49 KB
/
ClassSpecifications.ts
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
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module PresentationRules
*/
/**
* This specification is used to point to specific ECClass.
*
* @see [Single schema class specification reference documentation page]($docs/presentation/SingleSchemaClassSpecification.md)
* @public
*/
export interface SingleSchemaClassSpecification {
/**
* Specifies name of the schema which contains the target class.
*
* @pattern ^[\w\d]+$
*/
schemaName: string;
/**
* Specifies name of the target class.
*
* @pattern ^[\w\d]+$
*/
className: string;
}
/**
* This specification lists ECClasses which should be targeted when creating content or hierarchy nodes.
*
* @see [Multi schema classes specification reference documentation page]($docs/presentation/MultiSchemaClassesSpecification.md)
* @public
*/
export interface MultiSchemaClassesSpecification {
/**
* Specifies the schema which contains the target classes.
*
* @pattern ^[\w\d]+$
*/
schemaName: string;
/**
* An array of target ECClass names.
*/
classNames: string[];
/**
* Defines whether the derived ECClasses should be included in the result.
*/
arePolymorphic?: boolean;
}