Changeset 24227 in osm
- Timestamp:
- 2010-11-14T18:53:18+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/OSMAddress.java
r24226 r24227 65 65 boolean isComplete = hasCity() && 66 66 hasHouseNumber() && 67 (hasPost Code() && PostalCodeChecker.hasValidPostalCode(this)) &&67 (hasPostalCode() && PostalCodeChecker.hasValidPostalCode(this)) && 68 68 hasCity() && 69 69 hasStreetName(); … … 151 151 * @return the guessedPostCode 152 152 */ 153 public String getGuessedPost Code() {153 public String getGuessedPostalCode() { 154 154 return getGuessedValue(TagUtils.ADDR_POSTCODE_TAG); 155 155 } … … 161 161 * @param srcObj srcObj the source object of the guess 162 162 */ 163 public void setGuessedPost Code(String guessedPostCode, OsmPrimitive srcObj) {163 public void setGuessedPostalCode(String guessedPostCode, OsmPrimitive srcObj) { 164 164 setGuessedValue(TagUtils.ADDR_POSTCODE_TAG, guessedPostCode, srcObj); 165 165 } … … 170 170 * @return true, if this instance has a guessed post code. 171 171 */ 172 public boolean hasGuessedPost Code() {172 public boolean hasGuessedPostalCode() { 173 173 return hasGuessedValue(TagUtils.ADDR_POSTCODE_TAG); 174 174 } … … 228 228 * @return 229 229 */ 230 public String getPost Code() {230 public String getPostalCode() { 231 231 String pc = getTagValueWithGuess(TagUtils.ADDR_POSTCODE_TAG); 232 232 … … 252 252 * @return true, if successful 253 253 */ 254 public boolean hasPost Code() {254 public boolean hasPostalCode() { 255 255 return hasTag(TagUtils.ADDR_POSTCODE_TAG); 256 256 } … … 645 645 node.getHouseNumber(), 646 646 node.getCountry(), 647 node.getPost Code(),647 node.getPostalCode(), 648 648 node.getCity(), 649 649 node.getState()); -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/PostalCodeChecker.java
r24226 r24227 39 39 CheckParameterUtil.ensureParameterNotNull(address, "address"); 40 40 41 if (address.hasPost Code()) {41 if (address.hasPostalCode()) { 42 42 return false; // no postal code available 43 43 } 44 44 45 45 String ctry = getCountry(address); 46 String postalCode = address.getPost Code();46 String postalCode = address.getPostalCode(); 47 47 48 48 return hasValidPostalCode(ctry, postalCode); -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/IncompleteAddressesTableModel.java
r24174 r24227 88 88 return aNode.getCity(); 89 89 case 2: 90 return aNode.getPost Code();90 return aNode.getPostalCode(); 91 91 case 3: 92 92 return aNode.getStreetName(); … … 180 180 break; 181 181 case 2: 182 cc=arg0.getPost Code().compareTo(arg1.getPostCode());182 cc=arg0.getPostalCode().compareTo(arg1.getPostalCode()); 183 183 break; 184 184 case 3: -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/UnresolvedAddressesTableModel.java
r24175 r24227 121 121 return aNode.getCity(); 122 122 case 3: 123 return aNode.getPost Code();123 return aNode.getPostalCode(); 124 124 case 4: 125 125 return aNode.getName(); … … 225 225 break; 226 226 case 3: 227 cc = arg0.getPost Code().compareTo(arg1.getPostCode());227 cc = arg0.getPostalCode().compareTo(arg1.getPostalCode()); 228 228 break; 229 229 case 4:
Note:
See TracChangeset
for help on using the changeset viewer.