public class JRGenericElementParameterFactory extends JRBaseFactory
{
public Object createObject(Attributes attrs) throws Exception
{
JRDesignGenericElementParameter param = new JRDesignGenericElementParameter();
String name = attrs.getValue(JRXmlConstants.ATTRIBUTE_name);
param.setName(name);
String skipWhenNullAttr = attrs.getValue(JRXmlConstants.ATTRIBUTE_skipWhenNull);
if (skipWhenNullAttr != null)
{
param.setSkipWhenEmpty(Boolean.valueOf(skipWhenNullAttr).booleanValue());
}
return param;
}