Changeset 19200 in osm for applications
- Timestamp:
- 2009-12-24T09:50:22+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java
r18623 r19200 213 213 214 214 String okValue = null; 215 Boolean tagcheckerfile = false;216 Boolean ignorefile = false;215 boolean tagcheckerfile = false; 216 boolean ignorefile = false; 217 217 String line; 218 218 while((line = reader.readLine()) != null && (tagcheckerfile || line.length() != 0)) … … 323 323 for(String a : OsmPrimitive.getUninterestingKeys()) 324 324 presetsValueData.add(a); 325 for(String a : OsmPrimitive.getDirectionKeys()) 325 // TODO directionKeys are no longer in OsmPrimitive (search pattern is used instead) 326 /* for(String a : OsmPrimitive.getDirectionKeys()) 326 327 presetsValueData.add(a); 328 */ 327 329 for(String a : Main.pref.getCollection(PreferenceEditor.PREFIX + ".knownkeys", 328 330 Arrays.asList(new String[]{"is_in", "int_ref", "fixme", "population"}))) … … 497 499 if(values == null) 498 500 { 499 Boolean ignore = false;501 boolean ignore = false; 500 502 for(String a : ignoreDataStartsWith) 501 503 { … … 886 888 public Object tag; 887 889 public Object value; 888 public Boolean noMatch;889 public Boolean tagAll = false;890 public Boolean valueAll = false;891 public Boolean valueBool = false;890 public boolean noMatch; 891 public boolean tagAll = false; 892 public boolean valueAll = false; 893 public boolean valueBool = false; 892 894 private Pattern getPattern(String str) throws IllegalStateException, PatternSyntaxException 893 895 { … … 925 927 value = n.startsWith("/") ? getPattern(n) : n; 926 928 } 927 public Boolean match(OsmPrimitive osm)929 public boolean match(OsmPrimitive osm) 928 930 { 929 931 for(Entry<String, String> prop: osm.getKeys().entrySet()) … … 998 1000 return null; 999 1001 } 1000 public Boolean match(OsmPrimitive osm)1002 public boolean match(OsmPrimitive osm) 1001 1003 { 1002 1004 if(osm.getKeys() == null || (type == NODE && !(osm instanceof Node))
Note:
See TracChangeset
for help on using the changeset viewer.