using System;
using System.Collections.Generic;
using BismNormalizer.TabularCompare.Core;
namespace BismNormalizer.TabularCompare
{
///
/// Represents a collection of SkipSelection objects. This is serialized/deserialized to/from the BSMN file.
///
public class SkipSelectionCollection : List
{
public SkipSelectionCollection() { }
///
/// A Boolean specifying whether the collection contains an Core.ComparisonObject .
///
///
/// True if an object of that name is found, or False if it's not found.
public bool Contains(Core.ComparisonObject comparisonObj)
{
foreach (SkipSelection skipSelection in this)
{
if (skipSelection.ComparisonObjectType == comparisonObj.ComparisonObjectType && skipSelection.Status == comparisonObj.Status && (skipSelection.Status == ComparisonObjectStatus.MissingInSource || skipSelection.SourceObjectInternalName == comparisonObj.SourceObjectInternalName) && (skipSelection.Status == ComparisonObjectStatus.MissingInTarget || skipSelection.TargetObjectInternalName == comparisonObj.TargetObjectInternalName))
{
return true;
}
}
return false;
}
}
}