Constructors
Properties
Accessors
parentsMap
- get parentsMap(): Map<string, string[]>
Returns Map<string, string[]>
roots
- get roots(): string[]
Returns string[]
typePaths
- get typePaths(): Map<string, string[][] | "infinite">
Returns Map<string, string[][] | "infinite">
Methods
addComplexType
- addComplexType(...complexs): void
Returns void
addSimpleType
- addSimpleType(...simples): void
Returns void
toJSON
- toJSON(): {
complexTypes: {
attributes: Attribute[];
children: {
maxOccurs: undefined | number;
minOccurs: undefined | number;
type: string;
}[];
doc: undefined | string;
name: string;
}[];
simpleTypes: SimpleType[];
} Returns {
complexTypes: {
attributes: Attribute[];
children: {
maxOccurs: undefined | number;
minOccurs: undefined | number;
type: string;
}[];
doc: undefined | string;
name: string;
}[];
simpleTypes: SimpleType[];
}
complexTypes: {
attributes: Attribute[];
children: {
maxOccurs: undefined | number;
minOccurs: undefined | number;
type: string;
}[];
doc: undefined | string;
name: string;
}[]
Static
fromJSON
- fromJSON(data): XmlSchema
Parameters
- data: {
complexTypes: {
attributes: Attribute[];
children: {
maxOccurs: undefined | number;
minOccurs: undefined | number;
type: string;
}[];
doc: undefined | string;
name: string;
}[];
simpleTypes: SimpleType[];
}complexTypes: {
attributes: Attribute[];
children: {
maxOccurs: undefined | number;
minOccurs: undefined | number;
type: string;
}[];
doc: undefined | string;
name: string;
}[]
Type of an XML schema definition.
It defines the types allowed in an xml file, usually derived from an xsd file.