Class CmsDateRestrictionParser
java.lang.Object
org.opencms.jsp.search.config.parser.simplesearch.daterestrictions.CmsDateRestrictionParser
Parses date restrictions in a list configuration.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.apache.commons.logging.Log
Logger instance for this class.The CMS context used.static final String
XML node name.static final String
XML node name.static final String
XML node name.static final String
XML node name.static final String
XML node name.static final String
XML node name.static final String
XML node name.static final String
XML node name. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparse
(CmsXmlContentValueLocation dateRestriction) Parses a date restriction.
-
Field Details
-
N_RANGE
XML node name.- See Also:
-
N_PAST_FUTURE
XML node name.- See Also:
-
N_FROM_TODAY
XML node name.- See Also:
-
N_TO
XML node name.- See Also:
-
N_FROM
XML node name.- See Also:
-
N_DIRECTION
XML node name.- See Also:
-
N_UNIT
XML node name.- See Also:
-
N_COUNT
XML node name.- See Also:
-
LOG
Logger instance for this class. -
m_cms
The CMS context used.
-
-
Constructor Details
-
CmsDateRestrictionParser
Creates a new instance.- Parameters:
cms
- the CMS context to use
-
-
Method Details
-
parse
Parses a date restriction.- Parameters:
dateRestriction
- the location of the date restriction- Returns:
- the date restriction
-