25 lines
765 B
TypeScript
25 lines
765 B
TypeScript
import { IComponentMapping } from './component-mapping';
|
|
import { IListable } from '@iqser/common-ui';
|
|
|
|
export class ComponentMapping implements IComponentMapping, IListable {
|
|
readonly id: string;
|
|
readonly name: string;
|
|
readonly file: string;
|
|
readonly delimiter: string;
|
|
readonly encodingType: string;
|
|
readonly version: number;
|
|
|
|
constructor(componentMapping: IComponentMapping) {
|
|
this.id = componentMapping.id;
|
|
this.name = componentMapping.name;
|
|
this.file = componentMapping.file;
|
|
this.delimiter = componentMapping.delimiter;
|
|
this.encodingType = componentMapping.encodingType;
|
|
this.version = componentMapping.version;
|
|
}
|
|
|
|
get searchKey(): string {
|
|
return this.name;
|
|
}
|
|
}
|