KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > slide > projector > value > NumberValue


1 package org.apache.slide.projector.value;
2
3
4 public class NumberValue implements PrintableValue {
5     private Number JavaDoc number;
6
7     public final static String JavaDoc CONTENT_TYPE = Number JavaDoc.class.getName();
8
9     public NumberValue(Number JavaDoc number) {
10         this.number = number;
11     }
12
13     public Number JavaDoc getNumber() {
14         return number;
15     }
16
17     public String JavaDoc getContentType() {
18         return CONTENT_TYPE;
19     }
20
21     public StringBuffer JavaDoc print(StringBuffer JavaDoc buffer) {
22         return buffer.append(number);
23     }
24 }
Popular Tags