public virtual DateTools.Resolution getDateResolution(String fieldName)
{
if (fieldName == null)
{
throw new ArgumentException("Field cannot be null.");
}
if (fieldToDateResolution == null)
{
// no field specific date resolutions set; return default date resolution instead
return this.dateResolution;
}
DateTools.Resolution resolution = fieldToDateResolution[fieldName];
if (resolution == null)
{
// no date resolutions set for the given field; return default date resolution instead
resolution = this.dateResolution;
}
return resolution;
}