com.atlassian.confluence.search.summary
Class Summary.Fragment

java.lang.Object
  extended by com.atlassian.confluence.search.summary.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.
 int hashCode()
           
 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, finalize, getClass, 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.

Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Confluence is developed by Atlassian.