Class ContentSaxer
java.lang.Object
org.ametys.web.frontoffice.search.metamodel.impl.ContentSaxer
- All Implemented Interfaces:
ReturnableSaxer
- Direct Known Subclasses:
CalendarContentSaxer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractContentBasedReturnableThe associated returnable on contentsprotected Collection<String> the associated content typesprotected ContentTypesHelperprotected StringThe view for SAXing contents -
Constructor Summary
ConstructorsConstructorDescriptionContentSaxer(AbstractContentBasedReturnable contentReturnable, String view, ContentTypesHelper cTypesHelper, Collection<String> contentTypes) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSax(AmetysObject hit, org.slf4j.Logger logger, SearchComponentArguments args) Returnstrueif this saxer is able to SAX the given search hitvoidsax(ContentHandler contentHandler, AmetysObject hit, org.slf4j.Logger logger, SearchComponentArguments args) SAX the given search hitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.web.frontoffice.search.metamodel.ReturnableSaxer
getIdentifier
-
Field Details
-
_contentReturnable
The associated returnable on contents -
_view
The view for SAXing contents -
_cTypesHelper
-
_contentTypes
the associated content types
-
-
Constructor Details
-
ContentSaxer
public ContentSaxer(AbstractContentBasedReturnable contentReturnable, String view, ContentTypesHelper cTypesHelper, Collection<String> contentTypes) Constructor- Parameters:
contentReturnable- The associated returnable on contentsview- The view for SAXing contentscTypesHelper- theContentTypesHelpercontentTypes- the allowed content types
-
-
Method Details
-
canSax
Description copied from interface:ReturnableSaxerReturnstrueif this saxer is able to SAX the given search hit- Specified by:
canSaxin interfaceReturnableSaxer- Parameters:
hit- The search hitlogger- A loggerargs- The other arguments- Returns:
trueif this saxer is able to SAX the given search hit
-
sax
public void sax(ContentHandler contentHandler, AmetysObject hit, org.slf4j.Logger logger, SearchComponentArguments args) throws SAXException Description copied from interface:ReturnableSaxerSAX the given search hit- Specified by:
saxin interfaceReturnableSaxer- Parameters:
contentHandler- The content handlerhit- The search hitlogger- A loggerargs- The other arguments- Throws:
SAXException- if a SAX error occured
-