hudson.plugins.analysis.util
Class HtmlPrinter

java.lang.Object
  extended by hudson.plugins.analysis.util.HtmlPrinter

public class HtmlPrinter
extends Object

Simple wrapper of a StringBuffer that is capable of writing HTML sequences used in Jelly scripts.

Author:
Ulli Hafner

Constructor Summary
HtmlPrinter()
           
 
Method Summary
 void append(Object object)
          Appends the textual representation of the specified object to the buffer.
 void append(String text)
          Appends the specified text to the buffer.
 String item(String text)
          Adds a list item.
 String link(String url, String text)
          Adds a hyperlink.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HtmlPrinter

public HtmlPrinter()
Method Detail

item

public String item(String text)
Adds a list item.

Parameters:
text - the item text
Returns:
HTML item

toString

public String toString()
Overrides:
toString in class Object

link

public String link(String url,
                   String text)
Adds a hyperlink.

Parameters:
url - the link URL
text - the text describing the link
Returns:
HTML link

append

public void append(String text)
Appends the specified text to the buffer.

Parameters:
text - the text

append

public void append(Object object)
Appends the textual representation of the specified object to the buffer.

Parameters:
object - the object


Copyright © 2004-2012 Hudson. All Rights Reserved.