public class CourseSaxer extends PageSaxer
ReturnableSaxer
for CourseReturnable
Modifier and Type | Class and Description |
---|---|
(package private) static class |
CourseSaxer.CoursePagePath |
(package private) static class |
CourseSaxer.CoursePagePathsRetriever |
(package private) static class |
CourseSaxer.CoursePathSaxer |
Modifier and Type | Field and Description |
---|---|
private CourseReturnable |
_courseReturnable |
_pageReturnable
Constructor and Description |
---|
CourseSaxer(PageReturnable pageReturnable,
CourseReturnable courseReturnable)
Constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
_saxCourseContent(ContentHandler contentHandler,
Course course,
Logger logger,
SearchComponentArguments args) |
private void |
_saxCoursePages(ContentHandler contentHandler,
Course course) |
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
|
saxContent, saxRichTextExcerpt
private CourseReturnable _courseReturnable
public CourseSaxer(PageReturnable pageReturnable, CourseReturnable courseReturnable)
pageReturnable
- The course returnable (needed for superclass)courseReturnable
- The associated returnable on coursespublic boolean canSax(AmetysObject hit, Logger logger, SearchComponentArguments args)
ReturnableSaxer
true
if this saxer is able to SAX the given search hitcanSax
in interface ReturnableSaxer
canSax
in class PageSaxer
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
sax
in class PageSaxer
contentHandler
- The content handlerhit
- The search hitlogger
- A loggerargs
- The other argumentsSAXException
- if a SAX error occuredprivate void _saxCourseContent(ContentHandler contentHandler, Course course, Logger logger, SearchComponentArguments args) throws SAXException
SAXException
private void _saxCoursePages(ContentHandler contentHandler, Course course) throws SAXException
SAXException