UNPKG

typesxml

Version:

Open source XML library written in TypeScript

37 lines 1.13 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"; import { ContentParticleType } from "./contentParticle.js"; export class DTDPCData { getType() { return ContentParticleType.PCDATA; } addParticle(particle) { // text, not neeeded to add particles } setCardinality(cardinality) { // text, not needed to set cardinality } getCardinality() { return Cardinality.NONE; } getParticles() { return new Array(); } getChildren() { return new Set(); } toString() { return "#PCDATA"; } } //# sourceMappingURL=dtdPCData.js.map