org.apache.nutch.searcher
Class Summary.Fragment

java.lang.Object
  extended byorg.apache.nutch.searcher.Summary.Fragment
Direct Known Subclasses:
Summary.Ellipsis, Summary.Highlight
Enclosing class:
Summary

public static class Summary.Fragment
extends Object

A fragment of text within a summary.


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

Constructor Detail

Summary.Fragment

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

Method Detail

getText

public String getText()
Returns the text of this fragment.


isHighlight

public boolean isHighlight()
Returns true iff this fragment is to be highlighted.


isEllipsis

public boolean isEllipsis()
Returns true iff this fragment is an ellipsis.


toString

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



Copyright © 2006 The Apache Software Foundation