org.opensolaris.opengrok.search
Class Summary.Fragment

java.lang.Object
  extended by org.opensolaris.opengrok.search.Summary.Fragment
Direct Known Subclasses:
Summary.Ellipsis, Summary.Highlight
Enclosing class:
Summary

public static class Summary.Fragment
extends java.lang.Object

A fragment of text within a summary.


Constructor Summary
Summary.Fragment(java.lang.String text)
          Constructs a fragment for the given text.
 
Method Summary
 java.lang.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.
 java.lang.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(java.lang.String text)
Constructs a fragment for the given text.

Method Detail

getText

public java.lang.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 java.lang.String toString()
Returns an HTML representation of this fragment.

Overrides:
toString in class java.lang.Object