|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.utils.SampleHtmlGenerator
public class SampleHtmlGenerator
Generates HTML table for the provided Samples. Lines are separated by the default line separator
(current value of System.getProperty("line.separator")).
| Field Summary | |
|---|---|
private StringBuilder |
builder
|
private static String |
lineSeparator
|
private Iterable<Sample> |
samples
|
| Constructor Summary | |
|---|---|
private |
SampleHtmlGenerator(Iterable<Sample> samples)
|
| Method Summary | |
|---|---|
private void |
buildHeader()
|
private void |
buildRowForSample(Sample sample)
|
static String |
generate(Iterable<Sample> samples)
Generates HTML table for the provided Samples. |
static String |
generate(Sample... samples)
Generates HTML table for the provided Samples. |
private StringBuilder |
indent(int count)
|
static void |
setLineSeparator(String newLineSeparator)
Sets the line separator to desired string. |
private String |
toHtmlTable()
Generates HTML table for the provided Samples. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static String lineSeparator
private final Iterable<Sample> samples
private final StringBuilder builder
| Constructor Detail |
|---|
private SampleHtmlGenerator(Iterable<Sample> samples)
| Method Detail |
|---|
public static String generate(Sample... samples)
Samples.
samples - vararg array of Samples
public static String generate(Iterable<Sample> samples)
Samples.
samples - iterable of Samples
private String toHtmlTable()
Samples.
private void buildHeader()
private void buildRowForSample(Sample sample)
private StringBuilder indent(int count)
public static void setLineSeparator(String newLineSeparator)
System.getProperty("line.separator").
newLineSeparator - new line separator string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||