@finos/legend-graph
Version:
Legend graph and graph manager
49 lines (42 loc) • 2.35 kB
text/typescript
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { Hashable } from '@finos/legend-shared';
import type { V1_ModelChainConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_ModelChainConnection.js';
import type { V1_RelationalDatabaseConnection } from '../../../model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection.js';
import type { V1_JsonModelConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_JsonModelConnection.js';
import type { V1_XmlModelConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_XmlModelConnection.js';
import type { V1_FlatDataConnection } from '../../../model/packageableElements/store/flatData/connection/V1_FlatDataConnection.js';
import type { V1_ConnectionPointer } from './V1_ConnectionPointer.js';
import type { V1_INTERNAL__UnknownConnection } from './V1_INTERNAL__UnknownConnection.js';
export interface V1_ConnectionVisitor<T> {
visit_Connection(connection: V1_Connection): T;
visit_INTERNAL__UnknownConnection(
connection: V1_INTERNAL__UnknownConnection,
): T;
visit_ConnectionPointer(connection: V1_ConnectionPointer): T;
visit_JsonModelConnection(connection: V1_JsonModelConnection): T;
visit_ModelChainConnection(connection: V1_ModelChainConnection): T;
visit_XmlModelConnection(connection: V1_XmlModelConnection): T;
visit_FlatDataConnection(connection: V1_FlatDataConnection): T;
visit_RelationalDatabaseConnection(
connection: V1_RelationalDatabaseConnection,
): T;
}
export abstract class V1_Connection implements Hashable {
store?: string | undefined;
abstract get hashCode(): string;
abstract accept_ConnectionVisitor<T>(visitor: V1_ConnectionVisitor<T>): T;
}