Validate() public method

public Validate ( ) : void
return void
Beispiel #1
0
 public void Validate()
 {
     if (_anyQuantity != null)
     {
         _anyQuantity.Validate();
     }
 }
Beispiel #2
0
 public void Validate()
 {
     if (_confidence != null)
     {
         _confidence.Validate();
     }
     if (_minusQuantity != null)
     {
         _minusQuantity.Validate();
     }
     if (_plusQuantity != null)
     {
         _plusQuantity.Validate();
     }
     if (_resolution != null)
     {
         _resolution.Validate();
     }
 }
Beispiel #3
0
        public void Validate()
        {
            if (_fromQuantity != null)
            {
                _fromQuantity.Validate();
            }
            if (_toQuantity != null)
            {
                _toQuantity.Validate();
            }
            if (_errorLimit != null)
            {
                _errorLimit.Validate();
            }
            Regex regx = new Regex(PATTERN);

            if (!regx.Match(ToString()).Success)
            {
                throw new Exception(string.Format("Invalid Physical Expression - {0}", ToString()));
            }
        }