public StepError( MetadataRule rule, string property, string message) { Rule = rule; Property = property; Message = message; }
public MetadataStepResult(MetadataRule rule, string source, bool match, string matchedValue, string replacedValue, object target, string errorText) { Rule = rule; Source = source; Match = match; MatchedValue = matchedValue; ReplacedValue = replacedValue; TargetValue = target; ErrorText = errorText; }
private TextColumnWrapper ResolveColumn(MetadataRule rule, string propertyName, PropertyPath propertyPath, List <CommonException <StepError> > errors) { if (propertyPath == null) { return(null); } TextColumnWrapper textColumn; if (!_textColumns.TryGetValue(propertyPath, out textColumn)) { errors?.Add(CommonException.Create(new StepError(rule, propertyName, string.Format(Resources.MetadataExtractor_ResolveColumn_Unable_to_find_column__0_, propertyPath)))); } return(textColumn); }
protected bool Equals(MetadataRule other) { return(Equals(Source, other.Source) && Equals(Pattern, other.Pattern) && Equals(Target, other.Target) && Equals(Replacement, other.Replacement)); }