UNPKG

@tripsnek/tmf

Version:

TypeScript Modeling Framework - A TypeScript port of the Eclipse Modeling Framework (EMF)

39 lines 1.11 kB
import { EPackage } from '../metamodel/api/epackage.js'; /** * Parses Ecore XML strings into TMF metamodel instances. * This class handles the core parsing logic without file system dependencies. */ export declare class EcoreStringParser { parseFromJsString(ecoreJsonStr: any): EPackage; parseFromJs(ecoreJs: any): EPackage; /** * Instantiates all the EClassifiers, which need to exist in-memory for a full * pass so that features can be assigned types. * * @param pkgJson * @param typesMap * @param path */ private instantiateAllClassifiersAndFeatures; private getEClassifierUri; /** * Parses the package represented by pkgJson. * * @param pkgJson * @param parentPkg * @param typesMap * @param path */ private parsePackage; /** * Parses eStructuralFeatures elements from Ecore XMI element. * * @param classEntry * @param typesMap * @param featuresMap * @param eclass * @param eclassUri */ private parseFeatures; } //# sourceMappingURL=ecore-string-parser.d.ts.map