This topic applies only to the IBM Business Automation Workflow Advanced
configuration.

Formatter class

Draft comment:
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15
This class provides different methods to help with displaying the different examples. It adds different HTML tags to format the output.
package com.ibm.websphere.sample.brules.mgmt;

public class Formatter {

private StringBuffer buffer;

public Formatter()
{
		buffer = new StringBuffer();
}

public void println(Object o)
{
		buffer.append(o);
		buffer.append("<br>\n");
		}

		public void print(Object o)
		{
				buffer.append(o);
		}

		public void printlnBold(Object o)
		{
				buffer.append("<b>");
				buffer.append(o);
				buffer.append("</b><brbr>\n");
		}

		public void printBold(Object o)
		{
				buffer.append("<b>");
				buffer.append(o);
				buffer.append("</b>");
		}

		public String toString()
		{
				return buffer.toString();
		}

		public void clear()
		{
				buffer = new StringBuffer();
		}
}