typesxml
Version:
Open source XML library written in TypeScript
98 lines (97 loc) • 4.48 kB
TypeScript
/*******************************************************************************
* 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 { XMLElement } from '../XMLElement.js';
export declare class XSDSemanticValidator {
static validate(schemaRoot: XMLElement): void;
static validateCrossReferences(roots: Array<XMLElement>, allComplexTypes: Map<string, XMLElement>, allSimpleTypes: Map<string, XMLElement>, allTopLevelElements: Set<string>): void;
private static checkSimpleTypeRestrictionBaseRefs;
private static collectRedefineTypeNames;
private static checkCircularComplexTypeDefinitions;
private static walkComplexTypeChain;
private static checkCircularTypeDefinitions;
private static walkRestrictionChain;
private static checkListItemTypeVariety;
private static checkListUnionTypeReferences;
private static checkQNameSimpleTypeRef;
private static checkNamedComponents;
private static checkNotationAttributes;
private static checkNotationPlacement;
private static checkNotationRestrictionEnumerations;
private static checkNotationEnumValues;
private static checkIdAttributes;
private static checkAnnotationCount;
private static checkIncludeRedefine;
private static checkDuplicateIds;
private static collectIds;
private static checkDuplicateTopLevelGroups;
private static checkDuplicateTopLevelAttributeGroups;
private static checkDuplicateTopLevelComplexTypes;
private static checkDuplicateTopLevelElements;
private static checkDuplicateTopLevelSimpleTypes;
private static checkDuplicateImports;
static checkIncludedNamespace(includedRoot: XMLElement, includingNamespace: string | undefined): void;
private static checkFacetValues;
private static checkFinalConstraints;
private static checkFinalBlocks;
private static collectComplexTypes;
private static checkComplexTypeFinalConstraints;
private static getDefaultNs;
private static checkComplexTypeBaseReferences;
private static buildPrefixMap;
private static collectTopLevelElements;
private static checkElementRefAndTypeReferences;
private static checkQNameElementRef;
private static checkQNameTypeRef;
private static collectSimpleTypes;
private static getTypeVariety;
private static getInlineSimpleTypeVariety;
private static checkSimpleTypeRestrictions;
private static validateRestrictionFacets;
private static isIdType;
private static checkElementRefConstraints;
private static collectFacetsFromSimpleType;
private static resolveSimpleType;
private static isValidForInlineSimpleType;
private static isValidForResolvedType;
private static getSimpleContentBase;
private static checkElementValueConstraints;
private static checkAllNesting;
private static gatherConstraintNames;
private static checkKeyrefReferences;
private static countFields;
private static collectKeyUniqueNames;
private static validateKeyrefRefer;
private static checkIdentityConstraintPlacement;
private static gatherAttributeNames;
private static collectBaseAttributeNames;
private static findAnyAttributeConstraint;
private static expandWildcardTokens;
private static isAnyAttributeSubset;
private static checkComplexRestrictionAttributes;
private static isValidNameTest;
private static validateSelectorXPath;
private static validateFieldXPath;
private static checkAttributeUseConstraints;
private static checkOccurrenceConstraints;
private static checkWildcardNamespaceValues;
private static checkSimpleTypeChildren;
private static checkListUnionConstraints;
private static checkComplexTypeContentModel;
private static checkGroupCompositorCount;
private static validateDerivationSet;
private static checkBlockFinalAttributes;
private static checkSubstitutionGroupCycles;
private static checkSubstitutionGroupFinalConstraints;
private static findDerivationFromType;
private static findDerivationInComplexType;
private static localName;
}