protected String format(Date value) { if (value == null) return nullValue; if (dateFormatter != null) return dateFormatter.format(value); return value.toString(); }
protected String format(Long value) { if (value == null) return nullValue; if (longFormatter != null) return longFormatter.format(value); return value.toString(); }
protected String format(Number value) { if (value == null) return nullValue; if (numberFormatter != null) return numberFormatter.format(value); return value.toString(); }
protected String format(Short value) { if (value == null) return nullValue; if (shortFormatter != null) return shortFormatter.format(value); return value.toString(); }
protected String format(Integer value) { if (value == null) return nullValue; if (intFormatter != null) return intFormatter.format(value); return value.toString(); }
protected String format(Boolean value) { if (value == null) return nullValue; if (booleanFormatter != null) return booleanFormatter.format(value); return value.booleanValue() ? trueValue : falseValue; }
protected String format(Character value) { if (value == null) return nullValue; if (charFormatter != null) return charFormatter.format(value); return value.toString(); }
protected String format(float value) { if (floatFormatter != null) return floatFormatter.format(value); return String.valueOf(value); }
protected String format(double value) { if (doubleFormatter != null) return doubleFormatter.format(value); return String.valueOf(value); }
protected String format(int value) { if (intFormatter != null) return intFormatter.format(value); return String.valueOf(value); }
protected String format(long value) { if (longFormatter != null) return longFormatter.format(value); return String.valueOf(value); }
protected String format(short value) { if (shortFormatter != null) return shortFormatter.format(value); return String.valueOf(value); }
protected String format(char value) { if (charFormatter != null) return charFormatter.format(value); return String.valueOf(value); }
protected String format(byte value) { if (byteFormatter != null) return byteFormatter.format(value); return String.valueOf(value); }
protected String format(boolean value) { if (booleanFormatter != null) return booleanFormatter.format(value); return value ? trueValue : falseValue; }
protected String format(Object value) { if (value == null) return nullValue; if (formatter != null) return formatter.format(value); return StringUtils.toString(value); }