*@param out Description of Parameter
*@exception IOException Description of Exception
***********************************************************/
public void save(Saveable obj, Writer out) throws IOException
{
ProxyControl saved = (ProxyControl)obj;
String tagName = getPrimaryTagName();
out.write("<" + tagName);
out.write(" type=\"");
out.write(JMeterHandler.convertToXML(saved.getClass().getName()));
out.write("\"");
out.write(">\n");
for (Iterator iter = saved.getPropertyNames().iterator(); iter.hasNext(); ) {
String key = (String)iter.next();
Object value = saved.getProperty(key);
writeProperty(out, key, value);
}
writePatterns(saved.getIncludePatterns(), "includes", out);
writePatterns(saved.getExcludePatterns(), "excludes", out);
out.write("</" + tagName + ">");
}