HandCoded.Xml.Resolver.GroupEntry.ApplyUriEntries C# (CSharp) Method

ApplyUriEntries() private method

Applies all the UriEntry rules in the current catalog recursing into GroupEntry definitions.
private ApplyUriEntries ( String uri, Stack catalogs ) : String
uri String The public identifier of the external entity /// being referenced, or null if none was supplied.
catalogs Stack A stack of catalogs being processed used to /// detect circular dependency.
return String
        private String ApplyUriEntries(String uri, Stack<GroupEntry> catalogs)
        {
            String		result = null;

            foreach (CatalogComponent rule in rules) {
                if (rule is UriEntry) {
                    if ((result = ((IUriRule) rule)
                            .ApplyTo (uri, catalogs)) != null)
                        break;
                }

                if (rule is GroupEntry) {
                    if ((result = ((GroupEntry) rule)
                            .ApplyUriEntries (uri, catalogs)) != null)
                        break;
                }
            }
            return (result);
        }