@tripsnek/tmf
Version:
TypeScript Modeling Framework - A TypeScript port of the Eclipse Modeling Framework (EMF)
20 lines • 661 B
TypeScript
import { EObject } from '../metamodel/eobject';
export declare class SerializedReference {
fromId: string;
toId: string;
refName: string;
constructor(from: string, to: string, ref: string);
static create(fromDId: string, toDId: string, fromRef: string): SerializedReference;
/**
* Swizzles the object to JSON.
*/
serialize(): any;
/**
* Restores the swizzled reference.
*
* @param allObjs
* @returns true if the reference was successfully resolved, false if target object not found
*/
deserialize(allObjs: Map<String, EObject>): boolean;
}
//# sourceMappingURL=serialized-reference.d.ts.map