예제 #1
0
 protected String format(Date value) {
   if (value == null) return nullValue;
   if (dateFormatter != null) return dateFormatter.format(value);
   return value.toString();
 }
예제 #2
0
 protected String format(Long value) {
   if (value == null) return nullValue;
   if (longFormatter != null) return longFormatter.format(value);
   return value.toString();
 }
예제 #3
0
 protected String format(Number value) {
   if (value == null) return nullValue;
   if (numberFormatter != null) return numberFormatter.format(value);
   return value.toString();
 }
예제 #4
0
 protected String format(Short value) {
   if (value == null) return nullValue;
   if (shortFormatter != null) return shortFormatter.format(value);
   return value.toString();
 }
예제 #5
0
 protected String format(Integer value) {
   if (value == null) return nullValue;
   if (intFormatter != null) return intFormatter.format(value);
   return value.toString();
 }
예제 #6
0
 protected String format(Boolean value) {
   if (value == null) return nullValue;
   if (booleanFormatter != null) return booleanFormatter.format(value);
   return value.booleanValue() ? trueValue : falseValue;
 }
예제 #7
0
 protected String format(Character value) {
   if (value == null) return nullValue;
   if (charFormatter != null) return charFormatter.format(value);
   return value.toString();
 }
예제 #8
0
 protected String format(float value) {
   if (floatFormatter != null) return floatFormatter.format(value);
   return String.valueOf(value);
 }
예제 #9
0
 protected String format(double value) {
   if (doubleFormatter != null) return doubleFormatter.format(value);
   return String.valueOf(value);
 }
예제 #10
0
 protected String format(int value) {
   if (intFormatter != null) return intFormatter.format(value);
   return String.valueOf(value);
 }
예제 #11
0
 protected String format(long value) {
   if (longFormatter != null) return longFormatter.format(value);
   return String.valueOf(value);
 }
예제 #12
0
 protected String format(short value) {
   if (shortFormatter != null) return shortFormatter.format(value);
   return String.valueOf(value);
 }
예제 #13
0
 protected String format(char value) {
   if (charFormatter != null) return charFormatter.format(value);
   return String.valueOf(value);
 }
예제 #14
0
 protected String format(byte value) {
   if (byteFormatter != null) return byteFormatter.format(value);
   return String.valueOf(value);
 }
예제 #15
0
 protected String format(boolean value) {
   if (booleanFormatter != null) return booleanFormatter.format(value);
   return value ? trueValue : falseValue;
 }
예제 #16
0
 protected String format(Object value) {
   if (value == null) return nullValue;
   if (formatter != null) return formatter.format(value);
   return StringUtils.toString(value);
 }