@itwin/ecschema-metadata
Version:
ECObjects core concepts in typescript
24 lines • 931 B
TypeScript
import { Schema } from "../Metadata/Schema";
import { ISchemaPartVisitor } from "../SchemaPartVisitorDelegate";
/**
* The purpose of this class is to traverse a given schema, allowing clients to hook into
* the traversal process via Visitors to allow for custom processing of the schema elements.
* @internal
*/
export declare class SchemaWalker {
private _visitorHelper;
private _schema?;
/**
* Initializes a new SchemaWalker instance.
* @param visitor An ISchemaWalkerVisitor implementation whose methods will be called during schema traversal.
*/
constructor(visitor: ISchemaPartVisitor);
/**
* Traverses the given Schema, calling ISchemaWalkerVisitor methods along the way.
* @param schema The Schema to traverse.
*/
traverseSchema(schema: Schema): Promise<Schema>;
private traverseSchemaItem;
private traverseClass;
}
//# sourceMappingURL=SchemaWalker.d.ts.map