An instance of the CatalogEntry class represents the <catlog> element within a parsed catalog file.
Inheritance: GroupEntry
コード例 #1
0
        /// <summary>
        /// Constructs a new <b>Catalog</b> instance.
        /// </summary>
        /// <param name="url">The URL of this <b>Catalog</b>.</param>
        /// <param name="prefer">Optional <b>prefer</b> value.</param>
        /// <param name="xmlbase">Optional <b>xml:base</b> value.</param>
        public Catalog(String url, String prefer, String xmlbase)
        {
            this.url = url;

            if (url.StartsWith ("file:")) {
                if (url.StartsWith ("file:///"))
                    url = url.Substring (8);
                else
                    url = url.Substring (5);
            }

            definition = new CatalogEntry (prefer,
                (xmlbase != null) ? xmlbase : Path.GetDirectoryName (Path.GetFullPath (url)));
        }
コード例 #2
0
        /// <summary>
        /// Constructs a new <b>Catalog</b> instance.
        /// </summary>
        /// <param name="url">The URL of this <b>Catalog</b>.</param>
        /// <param name="prefer">Optional <b>prefer</b> value.</param>
        /// <param name="xmlbase">Optional <b>xml:base</b> value.</param>
        public Catalog(String url, String prefer, String xmlbase)
        {
            this.url = url;

            if (url.StartsWith("file:"))
            {
                if (url.StartsWith("file:///"))
                {
                    url = url.Substring(8);
                }
                else
                {
                    url = url.Substring(5);
                }
            }

            definition = new CatalogEntry(prefer,
                                          (xmlbase != null) ? xmlbase : Path.GetDirectoryName(Path.GetFullPath(url)));
        }