コード例 #1
0
        public override ErrorList Validate()
        {
            var result = new ErrorList();

            result.AddRange(base.Validate());

            if (SystemElement != null)
            {
                result.AddRange(SystemElement.Validate());
            }
            if (ValueElement != null)
            {
                result.AddRange(ValueElement.Validate());
            }
            if (UseElement != null)
            {
                result.AddRange(UseElement.Validate());
            }
            if (Period != null)
            {
                result.AddRange(Period.Validate());
            }

            return(result);
        }
コード例 #2
0
        public override ErrorList Validate()
        {
            var result = new ErrorList();

            result.AddRange(base.Validate());

            if (ValueElement != null)
            {
                result.AddRange(ValueElement.Validate());
            }
            if (ComparatorElement != null)
            {
                result.AddRange(ComparatorElement.Validate());
            }
            if (UnitsElement != null)
            {
                result.AddRange(UnitsElement.Validate());
            }
            if (SystemElement != null)
            {
                result.AddRange(SystemElement.Validate());
            }
            if (CodeElement != null)
            {
                result.AddRange(CodeElement.Validate());
            }

            return(result);
        }
コード例 #3
0
            public override ErrorList Validate()
            {
                var result = new ErrorList();

                result.AddRange(base.Validate());

                if (Code != null)
                {
                    result.AddRange(Code.Validate());
                }
                if (ValueElement != null)
                {
                    result.AddRange(ValueElement.Validate());
                }

                return(result);
            }
コード例 #4
0
            public override ErrorList Validate()
            {
                var result = new ErrorList();

                result.AddRange(base.Validate());

                if (KeyElement != null)
                {
                    result.AddRange(KeyElement.Validate());
                }
                if (ValueElement != null)
                {
                    result.AddRange(ValueElement.Validate());
                }
                if (FlagElement != null)
                {
                    FlagElement.ForEach(elem => result.AddRange(elem.Validate()));
                }

                return(result);
            }