element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.NULL_VALUE, getNullString());
}
else
{
element.setElementType(new LegacyType());
final DateFormatFilter dataSource = new DateFormatFilter();
if (format != null)
{
dataSource.setFormatter(format);
}
final DataRowDataSource dds = new DataRowDataSource();
if (getFormula() != null)
{
dds.setFormula(getFormula());
}
else
{
dds.setDataSourceColumnName(getFieldname());
}
dataSource.setDataSource(dds);
if (getNullString() != null)
{
dataSource.setNullValue(getNullString());
}
element.setDataSource(dataSource);
}
applyElementName(element);