public class CmsXMLSearchConfigurationParser extends java.lang.Object implements I_CmsSearchConfigurationParser
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
LOG
Logger for the class.
|
| Constructor and Description |
|---|
CmsXMLSearchConfigurationParser(CmsXmlContent xml,
java.util.Locale locale)
Constructor taking the XML content that should be read and the locale in which it should be read.
|
| Modifier and Type | Method and Description |
|---|---|
I_CmsSearchConfigurationCommon |
parseCommon()
Returns the common search configuration.
|
I_CmsSearchConfigurationDidYouMean |
parseDidYouMean()
Returns the configuration for the "Did you mean ...?"
|
protected java.util.List<I_CmsSearchConfigurationFacetQuery.I_CmsFacetQueryItem> |
parseFacetQueryItems(java.lang.String path)
Helper to read a mandatory String value list.
|
protected I_CmsSearchConfigurationFacetField |
parseFieldFacet(java.lang.String pathPrefix)
Reads the configuration of a field facet.
|
java.util.Map<java.lang.String,I_CmsSearchConfigurationFacetField> |
parseFieldFacets()
Returns the configuration for the field facets.
|
I_CmsSearchConfigurationHighlighting |
parseHighlighter()
Returns the configuration for the highlighting.
|
protected java.lang.Boolean |
parseOptionalBooleanValue(java.lang.String path)
Helper to read an optional Boolean value.
|
protected java.lang.Integer |
parseOptionalIntValue(java.lang.String path)
Helper to read an optional Integer value.
|
protected java.lang.String |
parseOptionalStringValue(java.lang.String path)
Helper to read an optional String value.
|
protected java.util.List<java.lang.String> |
parseOptionalStringValues(java.lang.String path)
Helper to read an optional String value list.
|
I_CmsSearchConfigurationPagination |
parsePagination()
Returns the configuration for the pagination.
|
I_CmsSearchConfigurationFacetQuery |
parseQueryFacet()
Returns the configuration for the query facet.
|
protected I_CmsSearchConfigurationFacetRange |
parseRangeFacet(java.lang.String pathPrefix)
Reads the configuration of a range facet.
|
java.util.Map<java.lang.String,I_CmsSearchConfigurationFacetRange> |
parseRangeFacets()
Returns the configuration for the range facets.
|
I_CmsSearchConfigurationSorting |
parseSorting()
Returns the configuration for sorting.
|
protected static final org.apache.commons.logging.Log LOG
public CmsXMLSearchConfigurationParser(CmsXmlContent xml, java.util.Locale locale)
xml - The XML content that should be read for the configuration.locale - The locale in which the content should be read.public I_CmsSearchConfigurationCommon parseCommon()
I_CmsSearchConfigurationParserparseCommon in interface I_CmsSearchConfigurationParserI_CmsSearchConfigurationParser.parseCommon()public I_CmsSearchConfigurationDidYouMean parseDidYouMean()
I_CmsSearchConfigurationParserparseDidYouMean in interface I_CmsSearchConfigurationParserI_CmsSearchConfigurationParser.parseDidYouMean()public java.util.Map<java.lang.String,I_CmsSearchConfigurationFacetField> parseFieldFacets()
I_CmsSearchConfigurationParserparseFieldFacets in interface I_CmsSearchConfigurationParserI_CmsSearchConfigurationParser.parseFieldFacets()public I_CmsSearchConfigurationHighlighting parseHighlighter()
I_CmsSearchConfigurationParserparseHighlighter in interface I_CmsSearchConfigurationParserI_CmsSearchConfigurationParser.parseHighlighter()public I_CmsSearchConfigurationPagination parsePagination()
I_CmsSearchConfigurationParserparsePagination in interface I_CmsSearchConfigurationParserI_CmsSearchConfigurationParser.parsePagination()public I_CmsSearchConfigurationFacetQuery parseQueryFacet()
I_CmsSearchConfigurationParserparseQueryFacet in interface I_CmsSearchConfigurationParserI_CmsSearchConfigurationParser.parseQueryFacet()public java.util.Map<java.lang.String,I_CmsSearchConfigurationFacetRange> parseRangeFacets()
I_CmsSearchConfigurationParserparseRangeFacets in interface I_CmsSearchConfigurationParserI_CmsSearchConfigurationParser.parseRangeFacets()public I_CmsSearchConfigurationSorting parseSorting()
I_CmsSearchConfigurationParserparseSorting in interface I_CmsSearchConfigurationParserI_CmsSearchConfigurationParser.parseSorting()protected java.util.List<I_CmsSearchConfigurationFacetQuery.I_CmsFacetQueryItem> parseFacetQueryItems(java.lang.String path) throws java.lang.Exception
path - The XML path of the element to read.null if the value could not be read.java.lang.Exception - thrown if the list of String values can not be read.protected I_CmsSearchConfigurationFacetField parseFieldFacet(java.lang.String pathPrefix)
pathPrefix - The XML Path that leads to the field facet configuration, or null if the XML was not correctly structured.null if the XML was not correctly structured.protected java.lang.Boolean parseOptionalBooleanValue(java.lang.String path)
path - The XML path of the element to read.null if the value could not be read.protected java.lang.Integer parseOptionalIntValue(java.lang.String path)
path - The XML path of the element to read.null if the value could not be read.protected java.lang.String parseOptionalStringValue(java.lang.String path)
path - The XML path of the element to read.null if the value could not be read.protected java.util.List<java.lang.String> parseOptionalStringValues(java.lang.String path)
path - The XML path of the element to read.null if the value could not be read.protected I_CmsSearchConfigurationFacetRange parseRangeFacet(java.lang.String pathPrefix)
pathPrefix - The XML Path that leads to the range facet configuration, or null if the XML was not correctly structured.null if the XML was not correctly structured.