C# Class HandCoded.Meta.SchemaRelease

The SchemaRelease class adds support for the ISchema interface to the base Release class.
Inheritance: Release, ISchema
Mostrar archivo Open project: formicary/fpml-toolkit-csharp Class Usage Examples

Public Methods

Method Description
AddImport ( SchemaRelease release ) : void

Creates a bi-directional reference between this SchemaRelease and the meta data for other instance that it imports.

IsInstance ( XmlDocument document ) : bool

Determines if the given XmlDocument is an instance of the XML grammar represented by this instance.

NewFragment ( string rootElement ) : XmlDocument

Create a new XmlDocument instance which will hold a fragment of a document based on the grammar represented by this release.

NewInstance ( string rootElement ) : XmlDocument

Creates a new instance the XML grammar represented by this instance using the indicated element name as the root element for the document.

RemoveImport ( SchemaRelease release ) : void

Breaks the bi-directional reference between this SchemaRelease and the indicated one.

SchemaRelease ( Specification specification, string version, string namespaceUri, string schemaLocation, string preferredPrefix, string alternatePrefix ) : System

Constructs a SchemaRelease instance describing a schema based release of a particular Specification.

This constructor should be used when creating a description of a pure extension schema, i.e. one that contains no useable root elements.

SchemaRelease ( Specification specification, string version, string namespaceUri, string schemaLocation, string preferredPrefix, string alternatePrefix, InstanceInitialiser initialiser, SchemaRecogniser recogniser ) : System

Constructs a SchemaRelease instance describing a schema based release of a particular Specification.

This constructor should be used when creating a description of a pure extension schema, i.e. one that contains no useable root elements.

SchemaRelease ( Specification specification, string version, string namespaceUri, string schemaLocation, string preferredPrefix, string alternatePrefix, InstanceInitialiser initialiser, SchemaRecogniser recogniser, string rootElement ) : System

Constructs a SchemaRelease instance describing a schema based release of a particular Specification.

This constructor should be used when creating a description of a schema that has only a single root element.

SchemaRelease ( Specification specification, string version, string namespaceUri, string schemaLocation, string preferredPrefix, string alternatePrefix, string rootElement ) : System

Constructs a SchemaRelease instance describing a schema based release of a particular Specification.

This constructor should be used when creating a description of a schema that has only a single root element.

Private Methods

Method Description
FindAllImports ( List releases ) : List

Recursively build a set of SchemaRelease instances containing this one and any that it imports with the least dependent first.

Method Details

AddImport() public method

Creates a bi-directional reference between this SchemaRelease and the meta data for other instance that it imports.
public AddImport ( SchemaRelease release ) : void
release SchemaRelease The imported .
return void

IsInstance() public method

Determines if the given XmlDocument is an instance of the XML grammar represented by this instance.
public IsInstance ( XmlDocument document ) : bool
document System.Xml.XmlDocument The to be tested.
return bool

NewFragment() public method

Create a new XmlDocument instance which will hold a fragment of a document based on the grammar represented by this release.
public NewFragment ( string rootElement ) : XmlDocument
rootElement string The name of the root element.
return System.Xml.XmlDocument

NewInstance() public method

Creates a new instance the XML grammar represented by this instance using the indicated element name as the root element for the document.
public NewInstance ( string rootElement ) : XmlDocument
rootElement string The name of the root element.
return System.Xml.XmlDocument

RemoveImport() public method

Breaks the bi-directional reference between this SchemaRelease and the indicated one.
public RemoveImport ( SchemaRelease release ) : void
release SchemaRelease The no longer imported.
return void

SchemaRelease() public method

Constructs a SchemaRelease instance describing a schema based release of a particular Specification.
This constructor should be used when creating a description of a pure extension schema, i.e. one that contains no useable root elements.
public SchemaRelease ( Specification specification, string version, string namespaceUri, string schemaLocation, string preferredPrefix, string alternatePrefix ) : System
specification Specification The owning .
version string The version identifier for this release.
namespaceUri string The namespace used to identify the schema.
schemaLocation string The default schema location.
preferredPrefix string The preferred prefix for the namespace.
alternatePrefix string The alternate prefix for the namespace.
return System

SchemaRelease() public method

Constructs a SchemaRelease instance describing a schema based release of a particular Specification.
This constructor should be used when creating a description of a pure extension schema, i.e. one that contains no useable root elements.
public SchemaRelease ( Specification specification, string version, string namespaceUri, string schemaLocation, string preferredPrefix, string alternatePrefix, InstanceInitialiser initialiser, SchemaRecogniser recogniser ) : System
specification Specification The owning .
version string The version identifier for this release.
namespaceUri string The namespace used to identify the schema.
schemaLocation string The default schema location.
preferredPrefix string The preferred prefix for the namespace.
alternatePrefix string The alternate prefix for the namespace.
initialiser InstanceInitialiser The .
recogniser SchemaRecogniser The .
return System

SchemaRelease() public method

Constructs a SchemaRelease instance describing a schema based release of a particular Specification.
This constructor should be used when creating a description of a schema that has only a single root element.
public SchemaRelease ( Specification specification, string version, string namespaceUri, string schemaLocation, string preferredPrefix, string alternatePrefix, InstanceInitialiser initialiser, SchemaRecogniser recogniser, string rootElement ) : System
specification Specification The owning .
version string The version identifier for this release.
namespaceUri string The namespace used to identify the schema.
schemaLocation string The default schema location.
preferredPrefix string The preferred prefix for the namespace.
alternatePrefix string The alternate prefix for the namespace.
initialiser InstanceInitialiser The .
recogniser SchemaRecogniser The .
rootElement string The normal root element.
return System

SchemaRelease() public method

Constructs a SchemaRelease instance describing a schema based release of a particular Specification.
This constructor should be used when creating a description of a schema that has only a single root element.
public SchemaRelease ( Specification specification, string version, string namespaceUri, string schemaLocation, string preferredPrefix, string alternatePrefix, string rootElement ) : System
specification Specification The owning .
version string The version identifier for this release.
namespaceUri string The namespace used to identify the schema.
schemaLocation string The default schema location.
preferredPrefix string The preferred prefix for the namespace.
alternatePrefix string The alternate prefix for the namespace.
rootElement string The normal root element.
return System