1 package org.displaytag.test; 2 3 import java.util.Date; 4 5 6 /** 7 * Simple test data provider. 8 * @author Fabrizio Giustina 9 * @version $Revision: 907 $ ($Author: fgiust $) 10 */ 11 public class KnownTypes 12 { 13 14 /** 15 * constant for the "time" property name. 16 */ 17 public static final String TIME_PROPERTY = "time"; 18 19 /** 20 * constant for the "time" property value. For the curious, evals to Mon Mar 01 18:00:00 CST 3875 (if you are in 21 * Chicago). 22 */ 23 public static final Date TIME_VALUE = new Date(60121180800000L); 24 25 /** 26 * constant for the "long" property name. 27 */ 28 public static final String LONG_PROPERTY = "long"; 29 30 /** 31 * constant for the "long" property value. 32 */ 33 public static final Long LONG_VALUE = new Long(123456); 34 35 /** 36 * getter for the <code>TIME_PROPERTY</code> property. 37 * @return <code>TIME_VALUE</code> 38 */ 39 public Date getTime() 40 { 41 return TIME_VALUE; 42 } 43 44 /** 45 * getter for the <code>LONG_PROPERTY</code> property. 46 * @return <code>LONG_VALUE</code> 47 */ 48 public Long getLong() 49 { 50 return LONG_VALUE; 51 } 52 53 /** 54 * getter for a null property. 55 * @return <code>null</code> 56 */ 57 public Long getNullValue() 58 { 59 return null; 60 } 61 62 }