mondrian.util
Class Format.FallbackFormat

java.lang.Object
  extended by mondrian.util.Format.BasicFormat
      extended by mondrian.util.Format.FallbackFormat
Direct Known Subclasses:
Format.DateFormat, Format.NumericFormat
Enclosing class:
Format

abstract static class Format.FallbackFormat
extends Format.BasicFormat

FallbackFormat catches un-handled datatypes and prints the original format string. Better than giving an error. Abstract base class for NumericFormat and DateFormat.

 

Field Summary
(package private)  String token
           
 
Fields inherited from class mondrian.util.Format.BasicFormat
code
 
Constructor Summary
Format.FallbackFormat(int code, String token)
           
 
Method Summary
(package private)  void format(Calendar calendar, StringBuilder buf)
           
(package private)  void format(double d, StringBuilder buf)
           
(package private)  void format(long n, StringBuilder buf)
           
(package private)  void format(String s, StringBuilder buf)
           
 
Methods inherited from class mondrian.util.Format.BasicFormat
format, formatNull, isApplicableTo, isApplicableTo, isDate, isNumeric, isString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token

String token
Constructor Detail

Format.FallbackFormat

Format.FallbackFormat(int code,
                      String token)
Method Detail

format

void format(double d,
            StringBuilder buf)
Overrides:
format in class Format.BasicFormat

format

void format(long n,
            StringBuilder buf)
Overrides:
format in class Format.BasicFormat

format

void format(String s,
            StringBuilder buf)
Overrides:
format in class Format.BasicFormat

format

void format(Calendar calendar,
            StringBuilder buf)
Overrides:
format in class Format.BasicFormat

SourceForge.net_Logo