public class ContentSaxer extends Object implements ReturnableSaxer
Modifier and Type | Field and Description |
---|---|
protected AbstractContentBasedReturnable |
_contentReturnable
The associated returnable on contents
|
protected String |
_view
The view for SAXing contents
|
Constructor and Description |
---|
ContentSaxer(AbstractContentBasedReturnable contentReturnable,
String view)
Constructor
|
Modifier and Type | Method and Description |
---|---|
private String |
_getCurrentSiteName() |
private void |
_restoreSiteName(String currentSiteName) |
boolean |
canSax(AmetysObject hit,
Logger logger,
SearchComponentArguments args)
Returns
true if this saxer is able to SAX the given search hit |
void |
sax(ContentHandler contentHandler,
AmetysObject hit,
Logger logger,
SearchComponentArguments args)
SAX the given search hit
|
protected AbstractContentBasedReturnable _contentReturnable
public ContentSaxer(AbstractContentBasedReturnable contentReturnable, String view)
contentReturnable
- The associated returnable on contentsview
- The view for SAXing contentspublic boolean canSax(AmetysObject hit, Logger logger, SearchComponentArguments args)
ReturnableSaxer
true
if this saxer is able to SAX the given search hitcanSax
in interface ReturnableSaxer
hit
- The search hitlogger
- A loggerargs
- The other argumentstrue
if this saxer is able to SAX the given search hitpublic void sax(ContentHandler contentHandler, AmetysObject hit, Logger logger, SearchComponentArguments args) throws SAXException
ReturnableSaxer
sax
in interface ReturnableSaxer
contentHandler
- The content handlerhit
- The search hitlogger
- A loggerargs
- The other argumentsSAXException
- if a SAX error occuredprivate String _getCurrentSiteName()
private void _restoreSiteName(String currentSiteName)