Interface ReturnableSaxer

    • Method Detail

      • canSax

        boolean canSax​(AmetysObject hit,
                       org.slf4j.Logger logger,
                       SearchComponentArguments args)
        Returns true if this saxer is able to SAX the given search hit
        Parameters:
        hit - The search hit
        logger - A logger
        args - The other arguments
        Returns:
        true if this saxer is able to SAX the given search hit
      • getIdentifier

        default String getIdentifier()
        Gets this Saxer identifier.
        Most of the time you don't need to override this method and keep the default implementation which takes the runtime class name.
        This identifier is used to match some XSL templates.
        Thus, it does not have to be a unique identifier; for instance a ReturnableSaxer implementation can extend another Saxer and override getIdentifier() by returning its superclass name, in order to match the same XSL templates.
        Returns:
        this Saxer identifier