C# Class 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.
Inheritance: IReleaseLoader
Show file Open project: formicary/fpml-toolkit-csharp

Public Methods

Method Description
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.

Protected Methods

Method Description
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.

Method Details

GetAlternatePrefix() protected method

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.
return string

GetNamespaceUri() protected method

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.
return string

GetPreferredPrefix() protected method

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.
return string

GetRootElements() protected method

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.
return string[]

GetSchemaLocation() protected method

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.
return string

GetVersion() protected method

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.
return string

HandleImports() protected method

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.
return void

LoadData() public method

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.
return void