typesxml
Version:
Open source XML library written in TypeScript
41 lines • 1.31 kB
JavaScript
;
/*******************************************************************************
* 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
*******************************************************************************/
Object.defineProperty(exports, "__esModule", { value: true });
exports.DTDPCData = void 0;
const ContentModel_js_1 = require("./ContentModel.js");
const contentParticle_js_1 = require("./contentParticle.js");
class DTDPCData {
getType() {
return contentParticle_js_1.ContentParticleType.PCDATA;
}
addParticle(particle) {
// text, not neeeded to add particles
}
setCardinality(cardinality) {
// text, not needed to set cardinality
}
getCardinality() {
return ContentModel_js_1.Cardinality.NONE;
}
getParticles() {
return new Array();
}
getChildren() {
return new Set();
}
toString() {
return "#PCDATA";
}
}
exports.DTDPCData = DTDPCData;
//# sourceMappingURL=dtdPCData.js.map