public class Summary
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Summary.Ellipsis
An ellipsis fragment within a summary.
|
static class |
Summary.Fragment
A fragment of text within a summary.
|
static class |
Summary.Highlight
A highlighted fragment of text within a summary.
|
Constructor and Description |
---|
Summary() |
Modifier and Type | Method and Description |
---|---|
void |
add(Summary.Fragment fragment)
Adds a fragment to a summary.
|
Summary.Fragment[] |
getFragments()
Returns an array of all of this summary's fragments.
|
static java.lang.String |
htmlize(java.lang.String q) |
java.lang.String |
toString()
Returns an HTML representation of this fragment.
|
public static java.lang.String htmlize(java.lang.String q)
public void add(Summary.Fragment fragment)
public Summary.Fragment[] getFragments()
public java.lang.String toString()
toString
in class java.lang.Object