View Javadoc
1   /*
2    * Copyright 2010 James Pether Sörling
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *   http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   *
16   *	$Id$
17   *  $HeadURL$
18  */
19  package com.hack23.cia.service.external.esv.api;
20  
21  import org.apache.commons.lang3.builder.EqualsBuilder;
22  import org.apache.commons.lang3.builder.HashCodeBuilder;
23  import org.apache.commons.lang3.builder.ToStringBuilder;
24  import org.apache.commons.lang3.builder.ToStringStyle;
25  
26  /**
27   * The Class GovernmentBodyAnnualSummary.
28   */
29  public final class GovernmentBodyAnnualSummary {
30  
31  	/** The annual work head count. */
32  	private final int annualWorkHeadCount;
33  
34  	/** The comment. */
35  	private final String comment;
36  
37  	/** The consecutive number. */
38  	private final int consecutiveNumber;
39  
40  	/** The goverment body id. */
41  	private final String govermentBodyId;
42  
43  	/** The head count. */
44  	private final int headCount;
45  
46  	/** The m code. */
47  	private final String mCode;
48  
49  	/** The ministry. */
50  	private final String ministry;
51  
52  	/** The name. */
53  	private final String name;
54  
55  	/** The org number. */
56  	private final String orgNumber;
57  
58  	/** The vat. */
59  	private final String vat;
60  
61  	/** The year. */
62  	private final int year;
63  
64  	/**
65  	 * Instantiates a new government body annual summary.
66  	 *
67  	 * @param year
68  	 *            the year
69  	 * @param name
70  	 *            the name
71  	 * @param consecutiveNumber
72  	 *            the consecutive number
73  	 * @param govermentBodyId
74  	 *            the goverment body id
75  	 * @param mCode
76  	 *            the m code
77  	 * @param ministry
78  	 *            the ministry
79  	 * @param orgNumber
80  	 *            the org number
81  	 * @param headCount
82  	 *            the head count
83  	 * @param annualWorkHeadCount
84  	 *            the annual work head count
85  	 * @param vat
86  	 *            the vat
87  	 * @param comment
88  	 *            the comment
89  	 */
90  	public GovernmentBodyAnnualSummary(final int year, final String name, final int consecutiveNumber, final String govermentBodyId,
91  			final String mCode, final String ministry, final String orgNumber, final int headCount, final int annualWorkHeadCount, final String vat,
92  			final String comment) {
93  		super();
94  		this.year = year;
95  		this.name = name;
96  		this.consecutiveNumber = consecutiveNumber;
97  		this.govermentBodyId = govermentBodyId;
98  		this.mCode = mCode;
99  		this.ministry = ministry;
100 		this.orgNumber = orgNumber;
101 		this.headCount = headCount;
102 		this.annualWorkHeadCount = annualWorkHeadCount;
103 		this.vat = vat;
104 		this.comment = comment;
105 	}
106 
107 	@Override
108 	public boolean equals(final Object obj) {
109 		return EqualsBuilder.reflectionEquals(this, obj);
110 	}
111 
112 	/**
113 	 * Gets the annual work head count.
114 	 *
115 	 * @return the annual work head count
116 	 */
117 	public int getAnnualWorkHeadCount() {
118 		return annualWorkHeadCount;
119 	}
120 
121 	/**
122 	 * Gets the comment.
123 	 *
124 	 * @return the comment
125 	 */
126 	public String getComment() {
127 		return comment;
128 	}
129 
130 	/**
131 	 * Gets the consecutive number.
132 	 *
133 	 * @return the consecutive number
134 	 */
135 	public int getConsecutiveNumber() {
136 		return consecutiveNumber;
137 	}
138 
139 	/**
140 	 * Gets the goverment body id.
141 	 *
142 	 * @return the goverment body id
143 	 */
144 	public String getGovermentBodyId() {
145 		return govermentBodyId;
146 	}
147 
148 	/**
149 	 * Gets the head count.
150 	 *
151 	 * @return the head count
152 	 */
153 	public int getHeadCount() {
154 		return headCount;
155 	}
156 
157 	/**
158 	 * Gets the m code.
159 	 *
160 	 * @return the m code
161 	 */
162 	public String getmCode() {
163 		return mCode;
164 	}
165 
166 	/**
167 	 * Gets the ministry.
168 	 *
169 	 * @return the ministry
170 	 */
171 	public String getMinistry() {
172 		return ministry;
173 	}
174 
175 	/**
176 	 * Gets the name.
177 	 *
178 	 * @return the name
179 	 */
180 	public String getName() {
181 		return name;
182 	}
183 
184 	/**
185 	 * Gets the org number.
186 	 *
187 	 * @return the org number
188 	 */
189 	public String getOrgNumber() {
190 		return orgNumber;
191 	}
192 
193 	/**
194 	 * Gets the vat.
195 	 *
196 	 * @return the vat
197 	 */
198 	public String getVat() {
199 		return vat;
200 	}
201 
202 	/**
203 	 * Gets the year.
204 	 *
205 	 * @return the year
206 	 */
207 	public int getYear() {
208 		return year;
209 	}
210 
211 	@Override
212 	public int hashCode() {
213 		return HashCodeBuilder.reflectionHashCode(this);
214 	}
215 
216 	@Override
217 	public String toString() {
218 		return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
219 	}
220 
221 }