View Javadoc
1   /*******************************************************************************
2    *   Gisgraphy Project 
3    * 
4    *   This library is free software; you can redistribute it and/or
5    *   modify it under the terms of the GNU Lesser General Public
6    *   License as published by the Free Software Foundation; either
7    *   version 2.1 of the License, or (at your option) any later version.
8    * 
9    *   This library is distributed in the hope that it will be useful,
10   *   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12   *   Lesser General Public License for more details.
13   * 
14   *   You should have received a copy of the GNU Lesser General Public
15   *   License along with this library; if not, write to the Free Software
16   *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
17   * 
18   *  Copyright 2008  Gisgraphy project 
19   *  David Masclet <davidmasclet@gisgraphy.com>
20   *  
21   *  
22   *******************************************************************************/
23  /**
24   *
25   */
26  
27  package com.gisgraphy.importer.dto;
28  
29  import java.util.ArrayList;
30  import java.util.List;
31  
32  /**
33   * Represents a house number as an interpolation in the Karlsruhe schema.
34   * 
35   * @author <a href="mailto:david.masclet@gisgraphy.com">David Masclet</a>
36   */
37  public class InterpolationHouseNumber {
38  
39  	/**
40  	 * the id ow the way
41  	 */
42  	private String wayId;
43  	
44  	/**
45  	 * the nodes of the way
46  	 */
47  	private List<InterpolationMember> members = new ArrayList<InterpolationMember>();
48  
49  	/**
50  	 *  the name of the street associated to the way, not to the node
51  	 */
52  	private String streetName;
53  	
54  	/**
55  	 * The type of interpolation (even,odd,...)
56  	 */
57  	private InterpolationType interpolationType = InterpolationType.all;
58  	
59  	private AddressInclusion AddressInclusion;
60  	
61  	/**
62  	 * @return the wayID
63  	 */
64  	public String getWayId() {
65  		return wayId;
66  	}
67  
68  	/**
69  	 * @param wayId the wayID to set
70  	 */
71  	public void setWayId(String wayId) {
72  		this.wayId = wayId;
73  	}
74  
75  	/**
76  	 * @return the members
77  	 */
78  	public List<InterpolationMember> getMembers() {
79  		return members;
80  	}
81  
82  	/**
83  	 * @param members the members to set
84  	 */
85  	public void setMembers(List<InterpolationMember> members) {
86  		this.members = members;
87  	}
88  	/**
89  	 * Add a member
90  	 * @param member
91  	 */
92  	public void addMember(InterpolationMember member){
93  		members.add(member);
94  	}
95  
96  	/**
97  	 * @return the interpolationType
98  	 */
99  	public InterpolationType getInterpolationType() {
100 		return interpolationType;
101 	}
102 
103 	/**
104 	 * @param interpolationType the interpolationType to set
105 	 */
106 	public void setInterpolationType(InterpolationType interpolationType) {
107 		this.interpolationType = interpolationType;
108 	}
109 
110 	/**
111 	 * @return the streetName
112 	 */
113 	public String getStreetName() {
114 		return streetName;
115 	}
116 
117 	/**
118 	 * @param streetName the streetName to set
119 	 */
120 	public void setStreetName(String streetName) {
121 		this.streetName = streetName;
122 	}
123 
124 	/**
125 	 * @return the addressInclusion
126 	 */
127 	public AddressInclusion getAddressInclusion() {
128 		return AddressInclusion;
129 	}
130 
131 	/**
132 	 * @param addressInclusion the addressInclusion to set
133 	 */
134 	public void setAddressInclusion(AddressInclusion addressInclusion) {
135 		AddressInclusion = addressInclusion;
136 	}
137 }