Пример #1
0
        public override ErrorList Validate()
        {
            var result = new ErrorList();

            result.AddRange(base.Validate());

            if (ContentTypeElement != null)
            {
                result.AddRange(ContentTypeElement.Validate());
            }
            if (LanguageElement != null)
            {
                result.AddRange(LanguageElement.Validate());
            }
            if (DataElement != null)
            {
                result.AddRange(DataElement.Validate());
            }
            if (UrlElement != null)
            {
                result.AddRange(UrlElement.Validate());
            }
            if (SizeElement != null)
            {
                result.AddRange(SizeElement.Validate());
            }
            if (HashElement != null)
            {
                result.AddRange(HashElement.Validate());
            }
            if (TitleElement != null)
            {
                result.AddRange(TitleElement.Validate());
            }

            return(result);
        }
Пример #2
0
        public override ErrorList Validate()
        {
            var result = new ErrorList();

            result.AddRange(base.Validate());

            if (Origin != null)
            {
                result.AddRange(Origin.Validate());
            }
            if (PeriodElement != null)
            {
                result.AddRange(PeriodElement.Validate());
            }
            if (FactorElement != null)
            {
                result.AddRange(FactorElement.Validate());
            }
            if (LowerLimitElement != null)
            {
                result.AddRange(LowerLimitElement.Validate());
            }
            if (UpperLimitElement != null)
            {
                result.AddRange(UpperLimitElement.Validate());
            }
            if (DimensionsElement != null)
            {
                result.AddRange(DimensionsElement.Validate());
            }
            if (DataElement != null)
            {
                result.AddRange(DataElement.Validate());
            }

            return(result);
        }