Class ResultHighlightImpl

java.lang.Object
ddf.catalog.operation.impl.ResultHighlightImpl
All Implemented Interfaces:
ddf.catalog.operation.ResultHighlight

public class ResultHighlightImpl extends Object implements ddf.catalog.operation.ResultHighlight
  • Constructor Details

    • ResultHighlightImpl

      public ResultHighlightImpl(String resultId)
      Instantiates a ResultHighlightImpl representing the highlight information for a particular query result. The attribute highlight data is available to add to or retrieve via the getAttributeHighlights method. This constructor creates an empty attribute highlight list, indicating that there are no highlights.
      Parameters:
      resultId - The ID of the result for which the contained highlights are for
    • ResultHighlightImpl

      public ResultHighlightImpl(String resultId, List<ddf.catalog.operation.ResultAttributeHighlight> attributeHighlights)
      Instantiates a ResultHighlightImpl representing the highlight information for a particular query result. Any number of ResultAttributeHighlights may be provided to indicate that more than one attribute was matched in a query. Additional highlight data may be added to the list by first requesting the list of highlights from the getAttributeHighlights method.
      Parameters:
      resultId - The ID of the result for which the contained highlights are for
      attributeHighlights - The list of attribute highlights that apply to the result
  • Method Details

    • getResultId

      public String getResultId()
      Specified by:
      getResultId in interface ddf.catalog.operation.ResultHighlight
    • getAttributeHighlights

      public List<ddf.catalog.operation.ResultAttributeHighlight> getAttributeHighlights()
      Specified by:
      getAttributeHighlights in interface ddf.catalog.operation.ResultHighlight