org.apache.nutch.searcher
Class Summary.Highlight

java.lang.Object
  extended byorg.apache.nutch.searcher.Summary.Fragment
      extended byorg.apache.nutch.searcher.Summary.Highlight
Enclosing class:
Summary

public static class Summary.Highlight
extends Summary.Fragment

A highlighted fragment of text within a summary.


Constructor Summary
Summary.Highlight(String text)
          Constructs a highlighted fragment for the given text.
 
Method Summary
 boolean isHighlight()
          Returns true.
 String toString()
          Returns an HTML representation of this fragment.
 
Methods inherited from class org.apache.nutch.searcher.Summary.Fragment
getText, isEllipsis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Summary.Highlight

public Summary.Highlight(String text)
Constructs a highlighted fragment for the given text.

Method Detail

isHighlight

public boolean isHighlight()
Returns true.

Overrides:
isHighlight in class Summary.Fragment

toString

public String toString()
Returns an HTML representation of this fragment.

Overrides:
toString in class Summary.Fragment


Copyright © 2006 The Apache Software Foundation