Class ContentSaxer
- java.lang.Object
-
- org.ametys.web.frontoffice.search.metamodel.impl.ContentSaxer
-
- All Implemented Interfaces:
ReturnableSaxer
public class ContentSaxer extends Object implements ReturnableSaxer
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractContentBasedReturnable
_contentReturnable
The associated returnable on contentsprotected String
_view
The view for SAXing contents
-
Constructor Summary
Constructors Constructor Description ContentSaxer(AbstractContentBasedReturnable contentReturnable, String view)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canSax(AmetysObject hit, org.slf4j.Logger logger, SearchComponentArguments args)
Returnstrue
if this saxer is able to SAX the given search hitvoid
sax(ContentHandler contentHandler, AmetysObject hit, org.slf4j.Logger logger, SearchComponentArguments args)
SAX the given search hit-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ametys.web.frontoffice.search.metamodel.ReturnableSaxer
getIdentifier
-
-
-
-
Field Detail
-
_contentReturnable
protected AbstractContentBasedReturnable _contentReturnable
The associated returnable on contents
-
-
Constructor Detail
-
ContentSaxer
public ContentSaxer(AbstractContentBasedReturnable contentReturnable, String view)
Constructor- Parameters:
contentReturnable
- The associated returnable on contentsview
- The view for SAXing contents
-
-
Method Detail
-
canSax
public boolean canSax(AmetysObject hit, org.slf4j.Logger logger, SearchComponentArguments args)
Description copied from interface:ReturnableSaxer
Returnstrue
if this saxer is able to SAX the given search hit- Specified by:
canSax
in interfaceReturnableSaxer
- Parameters:
hit
- The search hitlogger
- A loggerargs
- The other arguments- Returns:
true
if 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:ReturnableSaxer
SAX the given search hit- Specified by:
sax
in interfaceReturnableSaxer
- Parameters:
contentHandler
- The content handlerhit
- The search hitlogger
- A loggerargs
- The other arguments- Throws:
SAXException
- if a SAX error occured
-
-