KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > util > timepattern > TimePatternImpl


1 /* ************************************************************************** *
2  * Copyright (C) 2004 NightLabs GmbH, Marco Schulze, Alexander Bieber *
3  * All rights reserved. *
4  * http://www.NightLabs.de *
5  * *
6  * This program and the accompanying materials are free software; you can re- *
7  * distribute it and/or modify it under the terms of the GNU General Public *
8  * License as published by the Free Software Foundation; either ver 2 of the *
9  * License, or any later version. *
10  * *
11  * This module is distributed in the hope that it will be useful, but WITHOUT *
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FIT- *
13  * NESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more *
14  * details. *
15  * *
16  * You should have received a copy of the GNU General Public License along *
17  * with this module; if not, write to the Free Software Foundation, Inc.: *
18  * 59 Temple Place, Suite 330 *
19  * Boston MA 02111-1307 *
20  * USA *
21  * *
22  * Or get it online: *
23  * http://www.opensource.org/licenses/gpl-license.php *
24  * *
25  * In case, you want to use this module or parts of it in a proprietary pro- *
26  * ject, you can purchase it under the NightLabs Commercial License. Please *
27  * contact NightLabs GmbH under info AT nightlabs DOT com for more infos or *
28  * visit http://www.NightLabs.com *
29  * ************************************************************************** */

30 /*
31  * Created on Feb 10, 2005
32  */

33 package com.nightlabs.util.timepattern;
34
35 /**
36  * @author alex
37  */

38 public class TimePatternImpl extends TimePattern {
39
40     /**
41      * @param _timePatternSet
42      */

43     public TimePatternImpl(TimePatternSet _timePatternSet) {
44         super(_timePatternSet);
45     }
46
47     /**
48      * @param _timePatternSet
49      * @param _year
50      * @param _month
51      * @param _day
52      * @param _dayOfWeek
53      * @param _hour
54      * @param _minute
55      * @throws TimePatternFormatException
56      */

57     public TimePatternImpl(TimePatternSet _timePatternSet, String JavaDoc _year,
58             String JavaDoc _month, String JavaDoc _day, String JavaDoc _dayOfWeek, String JavaDoc _hour,
59             String JavaDoc _minute) throws TimePatternFormatException {
60         super(_timePatternSet, _year, _month, _day, _dayOfWeek, _hour, _minute);
61     }
62
63     protected String JavaDoc year;
64     
65     /**
66      * @see com.nightlabs.util.timepattern.TimePattern#getYear()
67      */

68     public String JavaDoc getYear() {
69         return year;
70     }
71
72     /**
73      * @see com.nightlabs.util.timepattern.TimePattern#_setYear(java.lang.String)
74      */

75     protected void _setYear(String JavaDoc _year) {
76         this.year = _year;
77     }
78
79     protected String JavaDoc month;
80     
81     /**
82      * @see com.nightlabs.util.timepattern.TimePattern#getMonth()
83      */

84     public String JavaDoc getMonth() {
85         return month;
86     }
87
88     /**
89      * @see com.nightlabs.util.timepattern.TimePattern#_setMonth(java.lang.String)
90      */

91     protected void _setMonth(String JavaDoc _month) {
92         this.month = _month;
93     }
94
95     protected String JavaDoc day;
96     
97     /**
98      * @see com.nightlabs.util.timepattern.TimePattern#getDay()
99      */

100     public String JavaDoc getDay() {
101         return day;
102     }
103
104     /**
105      * @see com.nightlabs.util.timepattern.TimePattern#_setDay(java.lang.String)
106      */

107     protected void _setDay(String JavaDoc _day) {
108         this.day = _day;
109     }
110
111     
112     protected String JavaDoc dayOfWeek;
113     
114     /**
115      * @see com.nightlabs.util.timepattern.TimePattern#getDayOfWeek()
116      */

117     public String JavaDoc getDayOfWeek() {
118         return dayOfWeek;
119     }
120
121     /**
122      * @see com.nightlabs.util.timepattern.TimePattern#_setDayOfWeek(java.lang.String)
123      */

124     protected void _setDayOfWeek(String JavaDoc _dayOfWeek) {
125         this.dayOfWeek = _dayOfWeek;
126     }
127
128     
129     protected String JavaDoc hour;
130     
131     /**
132      * @see com.nightlabs.util.timepattern.TimePattern#getHour()
133      */

134     public String JavaDoc getHour() {
135         return hour;
136     }
137
138     /**
139      * @see com.nightlabs.util.timepattern.TimePattern#_setHour(java.lang.String)
140      */

141     protected void _setHour(String JavaDoc _hour) {
142         this.hour = _hour;
143     }
144
145     
146     protected String JavaDoc minute;
147     
148     /**
149      * @see com.nightlabs.util.timepattern.TimePattern#getMinute()
150      */

151     public String JavaDoc getMinute() {
152         return minute;
153     }
154
155     /**
156      * @see com.nightlabs.util.timepattern.TimePattern#_setMinute(java.lang.String)
157      */

158     protected void _setMinute(String JavaDoc _minute) {
159         this.minute = _minute;
160     }
161
162     private TimePatternSet timePatternSet;
163     
164     /**
165      * @see com.nightlabs.util.timepattern.TimePattern#getTimePatternSet()
166      */

167     public TimePatternSet getTimePatternSet() {
168         return timePatternSet;
169     }
170
171     /**
172      * @see com.nightlabs.util.timepattern.TimePattern#setTimePatternSet(com.nightlabs.util.timepattern.TimePatternSet)
173      */

174     protected void setTimePatternSet(TimePatternSet set) {
175         this.timePatternSet = set;
176     }
177 }
178
Popular Tags