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

ApplyPublicEntries() private method

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

            foreach (CatalogComponent rule in rules) {
                if (rule is PublicEntry) {
                    if ((result = ((IEntityRule) rule)
                            .ApplyTo (publicId, systemId, catalogs)) != null)
                        break;
                }

                if (rule is GroupEntry) {
                    if ((result = ((GroupEntry) rule)
                            .ApplyPublicEntries (publicId, systemId, catalogs)) != null)
                        break;
                }
            }
            return (result);
        }