UNPKG

@itwin/core-backend

Version:
25 lines 1.19 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ /** @packageDocumentation * @module Schema */ import * as path from "path"; import { ClassRegistry } from "../ClassRegistry"; import { KnownLocations } from "../IModelHost"; import { Schema, Schemas } from "../Schema"; import * as elementsModule from "./GenericElements"; /** @public */ export class GenericSchema extends Schema { static get schemaName() { return "Generic"; } static get schemaFilePath() { return path.join(KnownLocations.nativeAssetsDir, "ECSchemas", "Dgn", `${GenericSchema.schemaName}.ecschema.xml`); } static registerSchema() { if (this !== Schemas.getRegisteredSchema(this.schemaName)) { Schemas.unregisterSchema(this.schemaName); Schemas.registerSchema(this); ClassRegistry.registerModule(elementsModule, this); } } } //# sourceMappingURL=GenericSchema.js.map