Class FacetGroupHelper
- Namespace
- Dynamicweb.Indexing.Querying.Faceting
- Assembly
- Dynamicweb.Core.dll
The Class FacetGroupHelper helps to work with facet groups
public static class FacetGroupHelper
- Inheritance
-
FacetGroupHelper
- Inherited Members
Methods
ConvertToFacets(XElement)
Converts xml element into facet group
public static IFacetGroup ConvertToFacets(XElement obj)
Parameters
obj
XElementThe element to be converted into facet group
Returns
- IFacetGroup
Facet group instance
ConvertToXml(IFacetGroup)
Converts facet group into xml element
public static XElement ConvertToXml(IFacetGroup facets)
Parameters
facets
IFacetGroupThe facet group to be converted
Returns
- XElement
Facet group in xml element representation
GetValueMapper(IEnumerable<Type>, string)
public static ValueMapperBase? GetValueMapper(IEnumerable<Type> valueMappers, string facetSource)
Parameters
valueMappers
IEnumerable<Type>facetSource
string
Returns
Merge(XElement, IFacetGroup)
Merges facet group to xml element
public static void Merge(XElement element, IFacetGroup facets)
Parameters
element
XElementXml element instance
facets
IFacetGroupFacet group instance