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

ApplySystemEntries() private method

Applies all the SystemEntry rules in the current catalog recursing into Group definitions.
private ApplySystemEntries ( 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 ApplySystemEntries(String publicId, String systemId, Stack<GroupEntry> catalogs)
        {
            String		result = null;

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

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