KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > betwixt > scarab > CreatedDate


1 package org.apache.commons.betwixt.scarab;
2
3 /*
4  * Copyright 2001-2004 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18
19 import java.io.Serializable JavaDoc;
20
21 import org.apache.commons.logging.Log;
22 import org.apache.commons.logging.LogFactory;
23
24 /**
25  * <p><code>CreatedDate</code> is a sample bean for use by the test cases.</p>
26  *
27  * @author <a HREF="mailto:jon@latchkey.com">Jon Scott Stevens</a>
28  * @version $Id: CreatedDate.java,v 1.5 2004/02/28 13:38:36 yoavs Exp $
29  */

30 public class CreatedDate implements Serializable JavaDoc
31 {
32     /**
33      * Logger
34      */

35     private final static Log log = LogFactory.getLog(CreatedDate.class);
36
37     private String JavaDoc format;
38     private String JavaDoc timestamp;
39
40     public void setFormat(String JavaDoc format)
41     {
42         this.format = format;
43     }
44
45     public String JavaDoc getFormat()
46     {
47         return this.format;
48     }
49
50     public void setTimestamp(String JavaDoc timestamp)
51     {
52         this.timestamp = timestamp;
53     }
54
55     public String JavaDoc getTimestamp()
56     {
57         return this.timestamp;
58     }
59
60     public String JavaDoc toString()
61     {
62         return "format=" + format + ";timestamp=" + timestamp;
63     }
64 }
65
Popular Tags