typesxml
Version:
Open source XML library written in TypeScript
31 lines (30 loc) • 1.05 kB
TypeScript
/*******************************************************************************
* Copyright (c) 2023 - 2024 Maxprograms.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse 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 { XMLElement } from "../XMLElement";
import { Grammar } from "./Grammar";
export declare class ContentModel {
OPTIONAL: string;
ZERO_OR_MORE: string;
ONE_OR_MORE: string;
ONE: string;
private grammar;
private name;
private mixed;
contentTypes: string[];
contentType: string;
model: Array<any>;
constructor(grammar: Grammar, name: string, contentSpec: string);
parseSpec(contentSpec: string): any[];
toString(): string;
isMixed(): boolean;
isValid(element: XMLElement): boolean;
}