public class ProgramSaxer extends PageSaxer
| Modifier and Type | Field and Description |
|---|---|
private ProgramReturnable.DisplaySubprogramMode |
_displaySubprogramMode |
private ProgramReturnable |
_programReturnable |
_pageReturnable| Constructor and Description |
|---|
ProgramSaxer(PageReturnable pageReturnable,
ProgramReturnable programReturnable,
ProgramReturnable.DisplaySubprogramMode displaySubprogramMode)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
private String |
_getSubProgramPagePath(Page subProgramPage,
String programPath) |
private ProgramPage |
_resolveProgramPage(Program program,
Site currentSite) |
private Page |
_resolveSubProgramPage(Program program,
ProgramPage programPage,
SubProgram subProgram) |
private void |
_saxProgramPage(ContentHandler contentHandler,
ProgramPage programPage,
Logger logger,
SearchComponentArguments args) |
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 void |
saxSubPrograms(ContentHandler contentHandler,
Program program,
ProgramPage programPage,
Logger logger,
Request request)
SAX the subprograms of the program
|
saxContent, saxRichTextExcerptprivate ProgramReturnable _programReturnable
private ProgramReturnable.DisplaySubprogramMode _displaySubprogramMode
public ProgramSaxer(PageReturnable pageReturnable, ProgramReturnable programReturnable, ProgramReturnable.DisplaySubprogramMode displaySubprogramMode)
pageReturnable - The page returnable (needed for superclass)programReturnable - The associated returnable on programsdisplaySubprogramMode - The mode for displaying (or not) subprogramspublic boolean canSax(AmetysObject hit, Logger logger, SearchComponentArguments args)
ReturnableSaxertrue if this saxer is able to SAX the given search hitcanSax in interface ReturnableSaxercanSax in class PageSaxerhit - 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
ReturnableSaxersax in interface ReturnableSaxersax in class PageSaxercontentHandler - The content handlerhit - The search hitlogger - A loggerargs - The other argumentsSAXException - if a SAX error occuredprivate ProgramPage _resolveProgramPage(Program program, Site currentSite)
private Page _resolveSubProgramPage(Program program, ProgramPage programPage, SubProgram subProgram)
private String _getSubProgramPagePath(Page subProgramPage, String programPath)
private void _saxProgramPage(ContentHandler contentHandler, ProgramPage programPage, Logger logger, SearchComponentArguments args) throws SAXException
SAXExceptionprotected void saxSubPrograms(ContentHandler contentHandler, Program program, ProgramPage programPage, Logger logger, Request request) throws SAXException
contentHandler - The content handlerprogram - The programprogramPage - The program pagelogger - A loggerrequest - The requestSAXException - if a SAX error occured