public SearchComponentBase GetSearchComponent(string name, SearchComponentBaseType typeOf)
{
switch (typeOf)
{
case SearchComponentBaseType.Facet:
{
if (this.ContainsFacet(name)) return this.GetFacet(name);
break;
}
case SearchComponentBaseType.Category:
{
if (this.ContainsCategory(name)) return this.GetCategory(name);
break;
}
case SearchComponentBaseType.Property:
{
if (this.ContainsProperty(name)) return this.GetProperty(name);
break;
}
}
return null;
}