Class Summary.Fragment
- java.lang.Object
-
- com.atlassian.confluence.search.v2.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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Constructor Detail
-
Fragment
public 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.
-
-