The SchemeCollection class maintains a set of Scheme instances that are used to validate data within an FpML document.
Exemplo n.º 1
0
 /// <summary>
 /// Constructs a <b>DTDRelease</b> instance describing a DTD
 /// based release of a particular <see cref="HandCoded.Meta.Specification"/>.
 /// </summary>
 /// <param name="specification">The owning <see cref="HandCoded.Meta.Specification"/>.</param>
 /// <param name="version">The version identifier for this release.</param>
 /// <param name="publicId">The public name for the DTD.</param>
 /// <param name="systemId">The system name for the DTD.</param>
 /// <param name="rootElement">The normal root element.</param>
 /// <param name="schemeDefaults">Scheme default URI information.</param>
 /// <param name="schemeCollection">The SchemeCollection of this release.</param>
 public DTDRelease(HandCoded.Meta.Specification specification, string version,
     string publicId, string systemId, string rootElement,
     SchemeDefaults schemeDefaults, SchemeCollection schemeCollection)
     : base(specification, version, publicId, systemId, rootElement)
 {
     this.schemeDefaults   = schemeDefaults;
     this.schemeCollection = schemeCollection;
 }
        /// <summary>
        /// Build a <see cref="SchemeCollection"/> instance for the release using
        /// the scheme filenames from the XML section describing the schema.
        /// </summary>
        /// <param name="context">The context <see cref="XmlElement"/> for the section.</param>
        /// <returns>A populated <see cref="SchemeCollection"/> instance.</returns>
        private SchemeCollection GetSchemeCollection(XmlElement context)
        {
            SchemeCollection schemes = new SchemeCollection ();

            foreach (XmlElement node in XPath.Paths (context, "schemes"))
                schemes.Parse (Application.PathTo (Types.ToToken (node)));

            return (schemes);
        }
        /// <summary>
        /// Constructs a <b>SchemaRelease</b> instance describing a schema
        /// based release of a particular <see cref="HandCoded.Meta.Specification"/>.
        /// </summary>
        /// <param name="specification">The owning <see cref="HandCoded.Meta.Specification"/>.</param>
        /// <param name="version">The version identifier for this release.</param>
        /// <param name="namespaceUri">The namespace used to identify the schema.</param>
        /// <param name="schemaLocation">The default schema location.</param>
        /// <param name="preferredPrefix">The preferred prefix for the namespace.</param>
        /// <param name="alternatePrefix">The alternate prefix for the namespace.</param>
        /// <param name="rootElement">The normal root element.</param>
        /// <param name="schemeDefaults">Scheme default URI information.</param>
        /// <param name="schemeCollection">The SchemeCollection for this release.</param>
        public SchemaRelease(HandCoded.Meta.Specification specification, string version,
            string namespaceUri, string schemaLocation,	string preferredPrefix,
            string alternatePrefix, string rootElement, SchemeDefaults schemeDefaults,
            SchemeCollection schemeCollection)
            : base(specification, version, namespaceUri, schemaLocation,
				preferredPrefix, alternatePrefix, rootElement)
        {
            this.schemeDefaults   = schemeDefaults;
            this.schemeCollection = schemeCollection;
        }
        /// <summary>
        /// Constructs a <b>SchemaRelease</b> instance describing a schema
        /// based release of a particular <see cref="HandCoded.Meta.Specification"/>.
        /// </summary>
        /// <param name="specification">The owning <see cref="HandCoded.Meta.Specification"/>.</param>
        /// <param name="version">The version identifier for this release.</param>
        /// <param name="namespaceUri">The namespace used to identify the schema.</param>
        /// <param name="schemaLocation">The default schema location.</param>
        /// <param name="preferredPrefix">The preferred prefix for the namespace.</param>
        /// <param name="alternatePrefix">The alternate prefix for the namespace.</param>
        /// <param name="initialiser">The <see cref="HandCoded.Meta.InstanceInitialiser"/>.</param>
        /// <param name="recogniser">The <see cref="HandCoded.Meta.SchemaRecogniser"/>.</param>
        /// <param name="rootElements">The possible root elements.</param>
        /// <param name="schemeDefaults">Scheme default URI information.</param>
        /// <param name="schemeCollection">The SchemeCollection for this release.</param>
        public SchemaRelease(HandCoded.Meta.Specification specification, string version,
            string namespaceUri, string schemaLocation,	string preferredPrefix,
            string alternatePrefix, HandCoded.Meta.InstanceInitialiser initialiser,
            HandCoded.Meta.SchemaRecogniser recogniser, string [] rootElements,
            SchemeDefaults schemeDefaults, SchemeCollection schemeCollection)
            : base(specification, version, namespaceUri, schemaLocation,
				preferredPrefix, alternatePrefix, initialiser, recogniser, rootElements)
        {
            this.schemeDefaults   = schemeDefaults;
            this.schemeCollection = schemeCollection;
        }