/** @packageDocumentation * @module Comparison */ import { AnyClass, AnyEnumerator, AnyProperty, Constant, CustomAttribute, CustomAttributeClass, CustomAttributeContainerProps, EntityClass, Enumeration, Format, InvertedUnit, KindOfQuantity, Mixin, OverrideFormat, Phenomenon, PropertyCategory, RelationshipClass, RelationshipConstraint, Schema, SchemaItem, Unit } from "@itwin/ecschema-metadata"; import { SchemaCompareDirection } from "./SchemaComparer"; import { ISchemaCompareReporter } from "./SchemaCompareReporter"; /** * Used by the [[SchemaComparer]] to report differences found during schema comparison. * @internal */ export declare class SchemaCompareResultDelegate { private _schemaChangeReporters; private _schemaAChanges; private _schemaBChanges; /** * Initializes a new SchemaCompareResultDelegate instance. * @param reporters The [[ISchemaCompareReporter]] objects to use to report schema differences. */ constructor(schemaA: Schema, schemaB: Schema, ...reporters: ISchemaCompareReporter[]); get schemaChangeReporters(): ISchemaCompareReporter[]; /** * Called by the SchemaComparer when the comparison is complete. */ compareComplete(): void; /** * Reports differences between Schema properties. * @param schemaA The first Schema supplied for comparison. * @param propertyName The name of the property. * @param valueA The value from the first Schema. * @param valueB The value from the second Schema. */ reportSchemaDelta(schemaA: Schema, propertyName: string, valueA: any, valueB: any, _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences in the schema reference collection of two schemas. * @param schemaA The first Schema supplied for comparison. * @param referenceSchema The missing schema reference. */ reportSchemaReferenceMissing(schemaA: Schema, referenceSchema: Schema, _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences in the schema reference collection of two schemas where the reference version differs. * @param schemaA The first Schema supplied for comparison. * @param referenceSchema The missing schema reference. */ reportSchemaReferenceDelta(schemaA: Schema, referenceSchema: Schema, versionA: string, versionB: string, _compareDirection: SchemaCompareDirection): Promise; /** * Reports that a given SchemaItem could not be found in the second Schema. * @param schemaItemA The SchemaItem from the first Schema. */ reportSchemaItemMissing(schemaItemA: SchemaItem, _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences between SchemaItem properties. * @param schemaItemA The first SchemaItem supplied for comparison. * @param propertyName The name of the property. * @param valueA The value from the first SchemaItem. * @param valueB The value from the second SchemaItem. */ reportSchemaItemDelta(schemaItemA: SchemaItem, propertyName: string, valueA: any, valueB: any, _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences between ECClass properties. * @param classA The first ECClass supplied for comparison. * @param propertyName The name of the property. * @param valueA The value from the first ECClass. * @param valueB The value from the second ECClass. */ reportClassDelta(classA: AnyClass, propertyName: string, valueA: any, valueB: any, _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences of the base class defined between two ECClass objects. * @param classA The first ECClass supplied for comparison. * @param baseClassA The base class of the first ECClass. * @param baseClassB The base class of the second ECClass. */ reportBaseClassDelta(classA: AnyClass, baseClassA: AnyClass | undefined, baseClassB: AnyClass | undefined, _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences between ECProperty properties. * @param propertyA The first ECProperty supplied for comparison. * @param propertyName The name of the property. * @param valueA The value from the first ECProperty. * @param valueB The value from the second ECProperty. */ reportPropertyDelta(propertyA: AnyProperty, propertyName: string, valueA: any, valueB: any, _compareDirection: SchemaCompareDirection): Promise; /** * Reports that an ECProperty found in the first ECClass could not be found in the second. * @param propertyA The ECProperty supplied for comparison. */ reportPropertyMissing(propertyA: AnyProperty, _compareDirection: SchemaCompareDirection): Promise; /** * Reports that a Mixin found in the first EntityClass could not be found in the second. * @param entityClassA The first EntityClass that is missing the Mixin. * @param mixinA The Mixin from the first EntityClass. */ reportEntityMixinMissing(entityClassA: EntityClass, mixinA: Mixin, _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences between Mixin properties. * @param mixinA The first Mixin supplied for comparison. * @param propertyName The name of the property. * @param valueA The value from the first Mixin. * @param valueB The value from the second Mixin. */ reportMixinDelta(mixinA: Mixin, propertyName: string, valueA: any, valueB: any, _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences between RelationshipClass properties. * @param relationshipClassA The first RelationshipClass supplied for comparison. * @param propertyName The name of the property. * @param valueA The value from the first RelationshipClass. * @param valueB The value from the second RelationshipClass. */ reportRelationshipClassDelta(relationshipClassA: RelationshipClass, propertyName: string, valueA: any, valueB: any, _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences between RelationshipConstraint properties. * @param constraintA The first RelationshipConstraint supplied for comparison. * @param propertyName The name of the property. * @param valueA The value from the first RelationshipConstraint. * @param valueB The value from the second RelationshipConstraint. */ reportRelationshipConstraintDelta(constraintA: RelationshipConstraint, propertyName: string, valueA: any, valueB: any, _compareDirection: SchemaCompareDirection): Promise; /** * Reports that a constraint class found in the first RelationshipConstraint could not be found in the second. * @param constraintA The first RelationshipConstraint that is missing the class constraint. * @param constraintClass The constraint ECClass from the first RelationshipConstraint. */ reportRelationshipConstraintClassMissing(constraintA: RelationshipConstraint, constraintClass: EntityClass | Mixin | RelationshipClass, _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences between CustomAttributeClass properties. * @param customAttributeA The first CustomAttributeClass supplied for comparison. * @param propertyName The name of the property. * @param valueA The value from the first CustomAttributeClass. * @param valueB The value from the second CustomAttributeClass. */ reportCustomAttributeClassDelta(customAttributeA: CustomAttributeClass, propertyName: string, valueA: any, valueB: any, _compareDirection: SchemaCompareDirection): Promise; /** * Reports that a CustomAttribute instance found in the first CustomAttribute container could not be found in the second. * @param customAttributeContainerA The first CustomAttribute container that is missing the CustomAttribute instance. * @param customAttribute The CustomAttribute missing. */ reportCustomAttributeInstanceClassMissing(customAttributeContainerA: CustomAttributeContainerProps, customAttribute: CustomAttribute, _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences between Enumeration properties. * @param enumerationA The first Enumeration supplied for comparison. * @param propertyName The name of the property. * @param valueA The value from the first Enumeration. * @param valueB The value from the second Enumeration. */ reportEnumerationDelta(enumerationA: Enumeration, propertyName: string, valueA: any, valueB: any, _compareDirection: SchemaCompareDirection): Promise; /** * Reports that a enumerator found in the first Enumeration could not be found in the second. * @param enumerationA The first Enumeration that is missing the enumerator. * @param enumerator The enumerator missing from the second schema. */ reportEnumeratorMissing(enumerationA: Enumeration, enumerator: AnyEnumerator, _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences between enumerator properties within a given Enumeration. * @param enumerationA The first Enumeration supplied for comparison. * @param enumerator The enumerator containing differing property values. * @param propertyName The name of the property. * @param valueA The value from the first enumerator. * @param valueB The value from the second enumerator. */ reportEnumeratorDelta(enumerationA: Enumeration, enumerator: AnyEnumerator, propertyName: string, valueA: any, valueB: any, _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences between KindOfQuantity properties. * @param koqA The first KindOfQuantity supplied for comparison. * @param propertyName The name of the property. * @param valueA The value from the first KindOfQuantity. * @param valueB The value from the second KindOfQuantity. */ reportKoqDelta(koqA: KindOfQuantity, propertyName: string, valueA: any, valueB: any, _compareDirection: SchemaCompareDirection): Promise; /** * Reports that a presentation unit found in the first KindOfQuantity could not be found in the second. * @param koqA The first KindOfQuantity that is missing the presentation unit. * @param unit The Format or OverrideFormat presentation unit missing from the second schema. */ reportPresentationUnitMissing(koqA: KindOfQuantity, unit: Format | OverrideFormat, _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences between PropertyCategory properties. * @param categoryA The first PropertyCategory supplied for comparison. * @param propertyName The name of the property. * @param valueA The value from the first PropertyCategory. * @param valueB The value from the second PropertyCategory. */ reportPropertyCategoryDelta(categoryA: PropertyCategory, propertyName: string, valueA: any, valueB: any, _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences between Format properties. * @param formatA The first Format supplied for comparison. * @param propertyName The name of the property. * @param valueA The value from the first Format. * @param valueB The value from the second Format. */ reportFormatDelta(formatA: Format, propertyName: string, valueA: any, valueB: any, _compareDirection: SchemaCompareDirection): Promise; /** * Reports that a unit found in the first Format could not be found in the second. * @param formatA The first Format that is missing the unit. * @param unit The Unit or InvertedUnit missing from the second schema. */ reportFormatUnitMissing(formatA: Format, unit: [Unit | InvertedUnit, string | undefined], _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences between overridden labels within the Units of a given Format. * @param formatA The first Format supplied for comparison. * @param unit The Unit or InvertedUnit with differing label overrides. * @param labelA The value from the first label. * @param labelB The value from the second label. */ reportUnitLabelOverrideDelta(formatA: Format, unit: Unit | InvertedUnit, labelA: string | undefined, labelB: string | undefined, _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences between Unit properties. * @param unitA The first Unit supplied for comparison. * @param propertyName The name of the property. * @param valueA The value from the first Unit. * @param valueB The value from the second Unit. */ reportUnitDelta(unitA: Unit, propertyName: string, valueA: any, valueB: any, _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences between InvertedUnit properties. * @param invertedUnitA The first InvertedUnit supplied for comparison. * @param propertyName The name of the property. * @param valueA The value from the first InvertedUnit. * @param valueB The value from the second InvertedUnit. */ reportInvertedUnitDelta(invertedUnitA: InvertedUnit, propertyName: string, valueA: any, valueB: any, _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences between Phenomenon properties. * @param phenomenonA The first Phenomenon supplied for comparison. * @param propertyName The name of the property. * @param valueA The value from the first Phenomenon. * @param valueB The value from the second Phenomenon. */ reportPhenomenonDelta(phenomenonA: Phenomenon, propertyName: string, valueA: any, valueB: any, _compareDirection: SchemaCompareDirection): Promise; /** * Reports differences between Constant properties. * @param constantA The first Constant supplied for comparison. * @param propertyName The name of the property. * @param valueA The value from the first Constant. * @param valueB The value from the second Constant. */ reportConstantDelta(constantA: Constant, propertyName: string, valueA: any, valueB: any, _compareDirection: SchemaCompareDirection): Promise; private reportDiagnostic; } //# sourceMappingURL=SchemaCompareResultDelegate.d.ts.map