emfular
Version:
Pure TS library with basic types and parser to move from XPath references to runtime models
17 lines (16 loc) • 753 B
TypeScript
import { Ref } from "../referencing/ref/ref";
import { Referencable } from "../referencing/referencable/referenceable";
import { ConstructorPointers } from "./constructor-pointers";
export declare class Deserializer {
private readonly completeJSON;
private readonly constructorPointers;
private context;
constructor(json: any, constructorPointers: ConstructorPointers);
getJsonFromTree<T>($ref: string): T;
getOrCreate<T extends Referencable>(ref: Ref): T;
private get;
private create;
put<T extends Referencable>(elem: T): void;
static createRefList(formerPrefix: string, ownHeader: string, eClasses?: string[]): Ref[];
static createSingleRef(formerPrefix: string, ownHeader: string, eClass: string): Ref;
}