ecore-ts
Version:
Ecore (EMOF) TypeScript Implementation
87 lines (86 loc) • 2.6 kB
TypeScript
import { EObject } from './ecore.ts';
export interface Descriptor {
label: string;
owner: EObject;
feature: EObject;
type: EObject;
}
declare function childTypes(object: EObject, createDescriptor?: Function): Array<Descriptor | EObject>;
declare function siblingTypes(object: EObject, createDescriptor?: Function): Array<Descriptor | EObject>;
declare function childDescriptors(object: EObject): Array<Descriptor | EObject>;
declare function siblingDescriptors(object: EObject): Array<Descriptor | EObject>;
declare function textNamedElement(object: EObject): string;
declare function textTypedElement(object: EObject): string;
declare function choiceOfValues(owner: EObject, feature: EObject): any[];
export declare const Edit: {
childTypes: typeof childTypes;
siblingTypes: typeof siblingTypes;
childDescriptors: typeof childDescriptors;
siblingDescriptors: typeof siblingDescriptors;
choiceOfValues: typeof choiceOfValues;
_get(fn: string, object: EObject): any;
text(object: EObject): any;
icon(object: EObject): any;
label(object: EObject): any;
EClass: {
text: typeof textNamedElement;
label: typeof textNamedElement;
icon: string;
};
EDataType: {
text: typeof textNamedElement;
label: typeof textNamedElement;
icon: string;
};
EEnum: {
text: typeof textNamedElement;
label: typeof textNamedElement;
icon: string;
};
EEnumLiteral: {
text(object: EObject): string;
label: typeof textNamedElement;
icon: string;
};
EAttribute: {
text: typeof textTypedElement;
label: typeof textNamedElement;
icon: string;
};
EReference: {
text: typeof textTypedElement;
label: typeof textNamedElement;
icon: string;
};
EOperation: {
text: typeof textTypedElement;
label: typeof textNamedElement;
icon: string;
};
EPackage: {
text: typeof textNamedElement;
label: typeof textNamedElement;
icon: string;
};
EAnnotation: {
text(object: EObject): unknown;
label(object: EObject): unknown;
icon: string;
};
EStringToStringMapEntry: {
text(object: EObject): string;
label(object: EObject): unknown;
icon: string;
};
ResourceSet: {
text: string;
label: string;
icon: string;
};
Resource: {
text(object: EObject): unknown;
label(object: EObject): unknown;
icon: string;
};
};
export {};