01: //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/trunk/src/org/deegree/model/metadata/iso19115/Date.java $
02: /*
03: ---------------- FILE HEADER ------------------------------------------
04:
05: This file is part of deegree.
06: Copyright (C) 2001-2008 by:
07: EXSE, Department of Geography, University of Bonn
08: http://www.giub.uni-bonn.de/deegree/
09: lat/lon GmbH
10: http://www.lat-lon.de
11:
12: This library is free software; you can redistribute it and/or
13: modify it under the terms of the GNU Lesser General Public
14: License as published by the Free Software Foundation; either
15: version 2.1 of the License, or (at your option) any later version.
16:
17: This library is distributed in the hope that it will be useful,
18: but WITHOUT ANY WARRANTY; without even the implied warranty of
19: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20: Lesser General Public License for more details.
21:
22: You should have received a copy of the GNU Lesser General Public
23: License along with this library; if not, write to the Free Software
24: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25:
26: Contact:
27:
28: Andreas Poth
29: lat/lon GmbH
30: Aennchenstr. 19
31: 53115 Bonn
32: Germany
33: E-Mail: poth@lat-lon.de
34:
35: Prof. Dr. Klaus Greve
36: Department of Geography
37: University of Bonn
38: Meckenheimer Allee 166
39: 53115 Bonn
40: Germany
41: E-Mail: greve@giub.uni-bonn.de
42:
43:
44: ---------------------------------------------------------------------------*/
45:
46: package org.deegree.model.metadata.iso19115;
47:
48: /**
49: * Date_Impl.java
50: *
51: * Created on 16. September 2002, 09:58
52: * <p>
53: * ----------------------------------------------------------------------
54: * </p>
55: *
56: * @author <a href="mailto:schaefer@lat-lon.de">Axel Schaefer</a>
57: * @version $Revision: 9343 $ $Date: 2007-12-27 05:30:32 -0800 (Thu, 27 Dec 2007) $
58: */
59:
60: public class Date {
61:
62: private String datetype = null;
63:
64: /** Creates a new instance of Date_Impl */
65: public Date(String datetype) {
66: setDateType(datetype);
67: }
68:
69: /**
70: * returns the DateType attribute possible value are:
71: * <ul>
72: * <li>creation
73: * <li>publication
74: * <li>revision
75: *
76: * @return String
77: */
78: public String getDateType() {
79: return datetype;
80: }
81:
82: /**
83: * @see #getDateType()
84: */
85: public void setDateType(String datetype) {
86: this .datetype = datetype;
87: }
88:
89: /**
90: * to String method
91: */
92: public String toString() {
93: String ret = null;
94: ret = "datetype = " + datetype + "\n";
95: return ret;
96: }
97:
98: }
|