UNPKG

typesxml

Version:

Open source XML library written in TypeScript

28 lines (27 loc) 1.12 kB
/******************************************************************************* * Copyright (c) 2023-2026 Maxprograms. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 1.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/org/documents/epl-v10.html * * Contributors: * Maxprograms - initial API and implementation *******************************************************************************/ import { Cardinality } from "./ContentModel.js"; export declare const ContentParticleType: { readonly PCDATA: 0; readonly NAME: 1; readonly SEQUENCE: 2; readonly CHOICE: 3; }; export interface ContentParticle { getType(): typeof ContentParticleType[keyof typeof ContentParticleType]; addParticle(particle: ContentParticle): void; setCardinality(cardinality: typeof Cardinality[keyof typeof Cardinality]): void; getCardinality(): typeof Cardinality[keyof typeof Cardinality]; getParticles(): Array<ContentParticle>; getChildren(): Set<string>; toString(): string; }