Ejemplo n.º 1
0
 public StepError(
     MetadataRule rule,
     string property, string message)
 {
     Rule     = rule;
     Property = property;
     Message  = message;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 protected bool Equals(MetadataRule other)
 {
     return(Equals(Source, other.Source) && Equals(Pattern, other.Pattern) &&
            Equals(Target, other.Target) && Equals(Replacement, other.Replacement));
 }