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.val.api;
20  
21  import java.util.List;
22  
23  import com.hack23.cia.model.external.val.kommunvalkrets.impl.SwedenCountyData;
24  import com.hack23.cia.model.external.val.landstingvalkrets.impl.SwedenCountyElectoralRegion;
25  import com.hack23.cia.model.external.val.partier.impl.SwedenElectionRegion;
26  import com.hack23.cia.model.external.val.partier.impl.SwedenElectionType;
27  import com.hack23.cia.model.external.val.partier.impl.SwedenPoliticalParty;
28  import com.hack23.cia.model.external.val.riksdagsvalkrets.impl.SwedenParliamentElectoralRegion;
29  
30  /**
31   * The Interface ValApi.
32   */
33  public interface ValApi {
34  
35  	/**
36  	 * Gets the election types.
37  	 *
38  	 * @return the election types
39  	 * @throws Exception
40  	 *             the exception
41  	 */
42  	List<SwedenElectionType> getElectionTypes() throws ValApiException;
43  
44  	/**
45  	 * Gets the parliament electoral regions.
46  	 *
47  	 * @return the parliament electoral regions
48  	 * @throws Exception
49  	 *             the exception
50  	 */
51  	List<SwedenParliamentElectoralRegion> getParliamentElectoralRegions() throws ValApiException;
52  
53  	/**
54  	 * Gets the county electoral regions.
55  	 *
56  	 * @return the county electoral regions
57  	 * @throws Exception
58  	 *             the exception
59  	 */
60  	List<SwedenCountyElectoralRegion> getCountyElectoralRegions() throws ValApiException;
61  
62  	/**
63  	 * Gets the county regions.
64  	 *
65  	 * @return the county regions
66  	 * @throws Exception
67  	 *             the exception
68  	 */
69  	List<SwedenCountyData> getCountyRegions() throws ValApiException;
70  
71  	/**
72  	 * Gets the sweden election region.
73  	 *
74  	 * @return the sweden election region
75  	 */
76  	SwedenElectionRegion getSwedenElectionRegion() throws ValApiException;
77  
78  	/**
79  	 * Gets the sweden political parties.
80  	 *
81  	 * @return the sweden political parties
82  	 */
83  	List<SwedenPoliticalParty> getSwedenPoliticalParties() throws ValApiException;
84  
85  }