Skip to content
Snippets Groups Projects
Commit 609f617e authored by Art Lowel's avatar Art Lowel
Browse files

Forgot to add files

parent f56eefab
No related branches found
No related tags found
No related merge requests found
import { NormalizedDSpaceObject } from "./normalized-dspace-object.model";
import { NormalizedBitstream } from "./normalized-bitstream.model";
import { NormalizedBundle } from "./normalized-bundle.model";
import { NormalizedItem } from "./normalized-item.model";
import { NormalizedCollection } from "./normalized-collection.model";
import { GenericConstructor } from "../../shared/generic-constructor";
import { NormalizedDSOType } from "./normalized-dspace-object-type";
export class NormalizedDSOFactory {
public static getConstructor(type: NormalizedDSOType): GenericConstructor<NormalizedDSpaceObject> {
switch (type) {
case NormalizedDSOType.NormalizedBitstream: {
return NormalizedBitstream
}
case NormalizedDSOType.NormalizedBundle: {
return NormalizedBundle
}
case NormalizedDSOType.NormalizedItem: {
return NormalizedItem
}
case NormalizedDSOType.NormalizedCollection: {
return NormalizedCollection
}
default: {
return undefined;
}
}
}
}
export enum NormalizedDSOType {
NormalizedBitstream,
NormalizedBundle,
NormalizedItem,
NormalizedCollection
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment