|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.labs.minion.test.QueryTest.DisplaySpec
protected class QueryTest.DisplaySpec
A class that is used to format for display the information from a document hit.
Field Summary | |
---|---|
protected java.lang.String[] |
fields
The fields we'll display. |
protected TextHighlighter |
th
|
Constructor Summary | |
---|---|
QueryTest.DisplaySpec(java.lang.String s)
Makes a display spec from a string representation. |
Method Summary | |
---|---|
protected void |
displayPassages(Result r)
Displays the passages associated with a given result. |
void |
format(Result r)
Format a result. |
void |
format(java.lang.String prefix,
Result r)
Format a result. |
java.lang.String |
reformat(java.lang.String text,
java.lang.String prefix,
int column)
Reformats a string to fit within a given number of columns with a given prefix on each line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String[] fields
protected TextHighlighter th
Constructor Detail |
---|
public QueryTest.DisplaySpec(java.lang.String s)
\n
and \t
to display newlines or tabs
in the output.
Method Detail |
---|
public void format(Result r)
public void format(java.lang.String prefix, Result r)
protected void displayPassages(Result r)
public java.lang.String reformat(java.lang.String text, java.lang.String prefix, int column)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |