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

The SchemaRelease class adds support for the ISchema interface to the base Release class.
Наследование: Release, ISchema
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

Приватные методы

Метод Описание
FindAllImports ( List releases ) : List

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

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

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

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 .
Результат void

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

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.
Результат bool

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

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.
Результат System.Xml.XmlDocument

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

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.
Результат System.Xml.XmlDocument

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

Breaks the bi-directional reference between this SchemaRelease and the indicated one.
public RemoveImport ( SchemaRelease release ) : void
release SchemaRelease The no longer imported.
Результат void

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

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.
Результат System

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

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 .
Результат System

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

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.
Результат System

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

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.
Результат System