packageDocumentation module import * as path from "path" ; import { ClassRegistry , KnownLocations , Schema , Schemas } from "@itwin/core-backend" ; import * as aspectsModule from "./LinearReferencingElementAspects" ; import * as elementsModule from "./LinearReferencingElements" ; import * as relationshipsModule from "./LinearReferencingRelationships" ; beta export class LinearReferencingSchema extends Schema { public static override get schemaName ( ) : string { return "LinearReferencing" ; } public static get schemaFilePath ( ) : string { return path . join ( KnownLocations . nativeAssetsDir , "ECSchemas" , "Domain" , "LinearReferencing.ecschema.xml" ) ; } public static registerSchema ( ) { if ( this !== Schemas . getRegisteredSchema ( this . schemaName ) ) { Schemas . unregisterSchema ( this . schemaName ) ; Schemas . registerSchema ( this ) ; ClassRegistry . registerModule ( elementsModule , this ) ; ClassRegistry . registerModule ( aspectsModule , this ) ; ClassRegistry . registerModule ( relationshipsModule , this ) ; } } }