예제 #1
0
 private void SaveMatchLevel3(MatchedName match)
 {
     // Don't save if the values are the same
     if (match.Level3NotSame())
     {
         matchProvider.SaveMatchLevel3(
             match.InputLocation.Name3,
             match.GazetteerLocation.Name1,
             match.GazetteerLocation.Name2,
             match.GazetteerLocation.Name3);
     }
 }
예제 #2
0
 private static void ValidateLevel3Match(
     MatchedName match,
     GazetteerNames gazetteerNames,
     StringBuilder errorMessage)
 {
     if (gazetteerNames.IsInLevel3Names(
             match.InputLocation.Name3,
             match.InputLocation.Name1,
             match.InputLocation.Name2))
     {
         if (match.Level3NotSame())
         {
             // The input value is in the gazetteer but is not the same as the selected match
             errorMessage.Append(match.OriginalInput.Name3);
         }
     }
 }
예제 #3
0
 private void SaveMatchLevel3(MatchedName match)
 {
     // Don't save if the values are the same
     if (match.Level3NotSame())
     {
         matchProvider.SaveMatchLevel3(
             match.InputLocation.Name3,
             match.GazetteerLocation.Name1,
             match.GazetteerLocation.Name2,
             match.GazetteerLocation.Name3);
     }
 }
예제 #4
0
 private static void ValidateLevel3Match(
     MatchedName match,
     GazetteerNames gazetteerNames,
     StringBuilder errorMessage)
 {
     if (gazetteerNames.IsInLevel3Names(
         match.InputLocation.Name3,
         match.InputLocation.Name1,
         match.InputLocation.Name2))
     {
         if (match.Level3NotSame())
         {
             // The input value is in the gazetteer but is not the same as the selected match
             errorMessage.Append(match.OriginalInput.Name3);
         }
     }
 }