1 /*
2 * Copyright 2009, openv4j.sf.net, and individual contributors as indicated
3 * by the @authors tag. See the copyright.txt in the distribution for a
4 * full listing of individual contributors.
5 *
6 * This is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 3 of
9 * the License, or (at your option) any later version.
10 *
11 * This software is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this software; if not, write to the Free
18 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
19 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
20 *
21 * $Id: $
22 *
23 * @author arnep
24 */
25 package net.sf.openv4j;
26
27 import java.util.Date;
28
29 /**
30 * DOCUMENT ME!
31 *
32 * @author aploese
33 */
34 public class Holiday {
35 private Date end;
36 private Date start;
37 private byte endFlag;
38 private byte startFlag;
39
40 /**
41 * DOCUMENT ME!
42 *
43 * @return the end
44 */
45 public Date getEnd() {
46 return end;
47 }
48
49 /**
50 * DOCUMENT ME!
51 *
52 * @return the endFlag
53 */
54 public byte getEndFlag() {
55 return endFlag;
56 }
57
58 /**
59 * DOCUMENT ME!
60 *
61 * @return the start
62 */
63 public Date getStart() {
64 return start;
65 }
66
67 /**
68 * DOCUMENT ME!
69 *
70 * @return the startFlag
71 */
72 public byte getStartFlag() {
73 return startFlag;
74 }
75
76 /**
77 * DOCUMENT ME!
78 *
79 * @param end the end to set
80 */
81 public void setEnd(Date end) {
82 this.end = end;
83 }
84
85 /**
86 * DOCUMENT ME!
87 *
88 * @param endFlag the endFlag to set
89 */
90 public void setEndFlag(byte endFlag) {
91 this.endFlag = endFlag;
92 }
93
94 /**
95 * DOCUMENT ME!
96 *
97 * @param start the start to set
98 */
99 public void setStart(Date start) {
100 this.start = start;
101 }
102
103 /**
104 * DOCUMENT ME!
105 *
106 * @param startFlag the startFlag to set
107 */
108 public void setStartFlag(byte startFlag) {
109 this.startFlag = startFlag;
110 }
111
112 /**
113 * DOCUMENT ME!
114 *
115 * @return DOCUMENT ME!
116 */
117 @Override
118 public String toString() {
119 return String.format("%s : 0x%02x | %s : 0x%02x", start, startFlag, end, endFlag);
120 }
121 }