C# Класс HandCoded.Meta.DefaultSchemaReleaseLoader

An instance of the DefaultSchemaReleaseLoader class will extract the description of an XML Schema based grammar from the bootstrap data file and construct a SchemaRelease to hold it.
Наследование: IReleaseLoader
Показать файл Открыть проект

Открытые методы

Метод Описание
LoadData ( Specification specification, XmlElement context, SchemaRelease>.Dictionary loadedSchemas ) : void

Extracts the data from the DOM tree below the indicated context XmlElement and create a suitable structure to add to the indicated Specification.

Защищенные методы

Метод Описание
GetAlternatePrefix ( XmlElement context ) : string

Extracts the release's alternate prefix string from the XML section describing the schema.

GetNamespaceUri ( XmlElement context ) : string

Extracts the release's namespace URI from the XML section describing the schema.

GetPreferredPrefix ( XmlElement context ) : string

Extracts the release's preferred prefix string from the XML section describing the schema.

GetRootElements ( XmlElement context ) : string[]

Extracts the release's root element names from the XML section describing the schema.

GetSchemaLocation ( XmlElement context ) : string

Extracts the release's default schema location path from the XML section describing the schema.

GetVersion ( XmlElement context ) : string

Extracts the release's version number string from the XML section describing the schema.

HandleImports ( SchemaRelease release, XmlElement context, SchemaRelease>.Dictionary loadedSchemas ) : void

Connects this schema to any other schemas that it imports.

Описание методов

GetAlternatePrefix() защищенный Метод

Extracts the release's alternate prefix string from the XML section describing the schema.
protected GetAlternatePrefix ( XmlElement context ) : string
context System.Xml.XmlElement The context for the section.
Результат string

GetNamespaceUri() защищенный Метод

Extracts the release's namespace URI from the XML section describing the schema.
protected GetNamespaceUri ( XmlElement context ) : string
context System.Xml.XmlElement The context for the section.
Результат string

GetPreferredPrefix() защищенный Метод

Extracts the release's preferred prefix string from the XML section describing the schema.
protected GetPreferredPrefix ( XmlElement context ) : string
context System.Xml.XmlElement The context for the section.
Результат string

GetRootElements() защищенный Метод

Extracts the release's root element names from the XML section describing the schema.
protected GetRootElements ( XmlElement context ) : string[]
context System.Xml.XmlElement The context for the section.
Результат string[]

GetSchemaLocation() защищенный Метод

Extracts the release's default schema location path from the XML section describing the schema.
protected GetSchemaLocation ( XmlElement context ) : string
context System.Xml.XmlElement The context for the section.
Результат string

GetVersion() защищенный Метод

Extracts the release's version number string from the XML section describing the schema.
protected GetVersion ( XmlElement context ) : string
context System.Xml.XmlElement The context for the section.
Результат string

HandleImports() защищенный Метод

Connects this schema to any other schemas that it imports.
protected HandleImports ( SchemaRelease release, XmlElement context, SchemaRelease>.Dictionary loadedSchemas ) : void
release SchemaRelease The for this schema.
context System.Xml.XmlElement The context for the section.
loadedSchemas SchemaRelease>.Dictionary A dictionay of previous bootstrapped schemas.
Результат void

LoadData() публичный Метод

Extracts the data from the DOM tree below the indicated context XmlElement and create a suitable structure to add to the indicated Specification.
public LoadData ( Specification specification, XmlElement context, SchemaRelease>.Dictionary loadedSchemas ) : void
specification Specification The owning .
context System.Xml.XmlElement The context containing data
loadedSchemas SchemaRelease>.Dictionary A dictionary of all ready loaded schemas.
Результат void