Class CourseSaxer
java.lang.Object
org.ametys.web.frontoffice.search.metamodel.impl.PageSaxer
org.ametys.plugins.odfweb.service.search.CourseSaxer
- All Implemented Interfaces:
ReturnableSaxer
ReturnableSaxer for CourseReturnable
Note for developpers: This Saxer extends PageSaxer to have access to its protected method #saxContent()
-
Field Summary
Fields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.PageSaxer
_pageReturnable -
Constructor Summary
ConstructorsConstructorDescriptionCourseSaxer(PageReturnable pageReturnable, CourseReturnable courseReturnable) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSax(AmetysObject hit, Logger logger, SearchComponentArguments args) Returnstrueif this saxer is able to SAX the given search hitvoidsax(ContentHandler contentHandler, AmetysObject hit, Logger logger, SearchComponentArguments args) SAX the given search hitMethods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.PageSaxer
saxContent, saxRichTextExcerptMethods 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
-
Constructor Details
-
CourseSaxer
Constructor- Parameters:
pageReturnable- The course returnable (needed for superclass)courseReturnable- The associated returnable on courses
-
-
Method Details
-
canSax
Description copied from interface:ReturnableSaxerReturnstrueif this saxer is able to SAX the given search hit- Specified by:
canSaxin interfaceReturnableSaxer- Overrides:
canSaxin classPageSaxer- 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, Logger logger, SearchComponentArguments args) throws SAXException Description copied from interface:ReturnableSaxerSAX the given search hit- Specified by:
saxin interfaceReturnableSaxer- Overrides:
saxin classPageSaxer- Parameters:
contentHandler- The content handlerhit- The search hitlogger- A loggerargs- The other arguments- Throws:
SAXException- if a SAX error occured
-