mondrian.util
Class Format.LiteralFormat

java.lang.Object
  extended by mondrian.util.Format.BasicFormat
      extended by mondrian.util.Format.LiteralFormat
Enclosing class:
Format

static class Format.LiteralFormat
extends Format.BasicFormat

LiteralFormat is an implementation of Format.BasicFormat which prints a constant value, regardless of the value to be formatted.

See Also:
Format.CompoundFormat
 

Field Summary
(package private)  String s
           
 
Fields inherited from class mondrian.util.Format.BasicFormat
code
 
Constructor Summary
Format.LiteralFormat(int code, String s)
           
Format.LiteralFormat(String s)
           
 
Method Summary
(package private)  void format(Calendar calendar, StringBuilder buf)
           
(package private)  void format(Date date, 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
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

s

String s
Constructor Detail

Format.LiteralFormat

Format.LiteralFormat(String s)

Format.LiteralFormat

Format.LiteralFormat(int code,
                     String s)
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(Date date,
            StringBuilder buf)
Overrides:
format in class Format.BasicFormat

format

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

SourceForge.net_Logo