示例#1
0
        /// <summary>just go down the child collections</summary>
        /// <param name="uriBase"> as currently calculated</param>
        internal override void BaseUriChanged(AtomUri uriBase)
        {
            base.BaseUriChanged(uriBase);

            foreach (AtomPerson person in Authors)
            {
                person.BaseUriChanged(uriBase);
            }

            // saving Contributors
            foreach (AtomPerson person in Contributors)
            {
                person.BaseUriChanged(uriBase);
            }

            // saving Categories
            foreach (AtomCategory category in Categories)
            {
                category.BaseUriChanged(uriBase);
            }

            // saving the generator
            if (Generator != null)
            {
                Generator.BaseUriChanged(uriBase);
            }

            // save the icon
            if (Icon != null)
            {
                Icon.BaseUriChanged(uriBase);
            }

            // save the logo
            if (Logo != null)
            {
                Logo.BaseUriChanged(uriBase);
            }

            // save the ID
            if (Id != null)
            {
                Id.BaseUriChanged(uriBase);
            }

            // save the Links
            foreach (AtomLink link in Links)
            {
                link.BaseUriChanged(uriBase);
            }

            if (Rights != null)
            {
                Rights.BaseUriChanged(uriBase);
            }

            if (Subtitle != null)
            {
                Subtitle.BaseUriChanged(uriBase);
            }

            if (Title != null)
            {
                Title.BaseUriChanged(uriBase);
            }
        }