Class HitRenderer


  • public abstract class HitRenderer
    extends java.lang.Object
    A helper for rendering grouping results.
    Author:
    Simon Thoresen Hult
    • Constructor Summary

      Constructors 
      Constructor Description
      HitRenderer()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean renderHeader​(HitGroup hit, com.yahoo.text.XMLWriter writer)
      Renders the header for the given grouping hit.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HitRenderer

        public HitRenderer()
    • Method Detail

      • renderHeader

        public static boolean renderHeader​(HitGroup hit,
                                           com.yahoo.text.XMLWriter writer)
                                    throws java.io.IOException
        Renders the header for the given grouping hit. If the hit is not a grouping hit, this method does nothing and returns false.

        Post-condition if this is a grouping hit: The hit tag is open.

        Parameters:
        hit - The hit whose header to render.
        writer - The writer to render to.
        Returns:
        True if the hit was rendered.
        Throws:
        java.io.IOException - Thrown if there was a problem writing.