org.apache.nutch.searcher
Class Summary.Fragment

java.lang.Object
  extended by org.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
 boolean equals(Object o)
           
 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 a textual representation of this fragment.
 
Methods inherited from class java.lang.Object
clone, 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 a textual representation of this fragment.

Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2006 The Apache Software Foundation