emfular
Version:
Pure TS library with basic types and parser to move from XPath references to runtime models
23 lines (22 loc) • 832 B
TypeScript
import { Ref } from "../ref/ref";
/** base class for CORE models.
*
*/
export declare abstract class Referencable {
protected ref: Ref;
gId: string;
singleChildren: Map<string, Referencable>;
listChildren: Map<string, Referencable[]>;
getTreeParent(): Referencable | undefined;
protected constructor(ref: Ref);
getRef(): Ref;
private setRef;
prepare(ownPos: string): void;
static prepareList<T extends Referencable>(prefix: string, list: T[]): void;
removeFromListChild<T extends Referencable>(elem: T, list: T[]): void;
static listToRefs<T extends Referencable>(list: T[]): Ref[];
destruct(): void;
private getAttr;
addToReferencableContainer(name: string, item: Referencable): boolean;
removeFromReferencableContainer(name: string, item: Referencable): boolean;
}