/// <summary> /// Applys the rule instance to the public or system identifier in an /// attempt to locate the URI of a resource with can provide the required /// information. /// </summary> /// <param name="publicId">The public identifier of the external entity /// being referenced, or null if none was supplied.</param> /// <param name="systemId">The system identifier of the external entity /// being referenced.</param> /// <param name="catalogs">The stack of catalogs being processed.</param> /// <returns>A new URI if the rule was successfully applied, otherwise /// <b>null</b>.</returns> public String ApplyTo(String publicId, String systemId, Stack <GroupEntry> catalogs) { if (systemId.StartsWith(prefix)) { return(CatalogManager.Find(catalog).Definition.ApplyRules(publicId, systemId, catalogs)); } return(null); }
/// <summary> /// Applys the rule instance to the public or system identifier in an /// attempt to locate the URI of a resource with can provide the required /// information. /// </summary> /// <param name="uri">The uri needing to be resolved.</param> /// <param name="catalogs">The stack of catalogs being processed.</param> /// <returns>A new URI if the rule was successfully applied, otherwise /// <b>null</b>.</returns> public String ApplyTo(String uri, Stack <GroupEntry> catalogs) { if (uri.StartsWith(startString)) { return(CatalogManager.Find(catalog).Definition.ApplyRules(uri, catalogs)); } return(null); }
/// <summary> /// Applys the rule instance to the public or system identifier in an /// attempt to locate the URI of a resource with can provide the required /// information. /// </summary> /// <param name="uri">The uri needing to be resolved.</param> /// <param name="catalogs">The stack of catalogs being processed.</param> /// <returns>A new URI if the rule was successfully applied, otherwise /// <b>null</b>.</returns> public String ApplyTo(String uri, Stack <GroupEntry> catalogs) { return(CatalogManager.Find(new Uri(XmlBase + "/" + catalog).ToString()) .Definition.ApplyRules(uri, catalogs)); }