Changeset 12390 in josm for trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java
- Timestamp:
- 2017-06-11T13:39:33+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java
r12282 r12390 134 134 }; 135 135 136 /** 137 * Adds a test to the list of available tests 138 * @param testClass The test class 139 */ 136 140 public static void addTest(Class<? extends Test> testClass) { 137 141 allTests.add(testClass); … … 193 197 } 194 198 199 /** 200 * Adds an ignored error 201 * @param s The ignore group / sub group name 202 * @see TestError#getIgnoreGroup() 203 * @see TestError#getIgnoreSubGroup() 204 */ 195 205 public static void addIgnoredError(String s) { 196 206 ignoredErrors.add(s); 197 207 } 198 208 209 /** 210 * Check if a error should be ignored 211 * @param s The ignore group / sub group name 212 * @return <code>true</code> to ignore that error 213 */ 199 214 public static boolean hasIgnoredError(String s) { 200 215 return ignoredErrors.contains(s); 201 216 } 202 217 218 /** 219 * Saves the names of the ignored errors to a file 220 */ 203 221 public static void saveIgnoredErrors() { 204 222 try (PrintWriter out = new PrintWriter(new File(getValidatorDir(), "ignorederrors"), StandardCharsets.UTF_8.name())) { … … 270 288 } 271 289 290 /** 291 * Gets all tests that are possible 292 * @return The tests 293 */ 272 294 public static Collection<Test> getTests() { 273 295 return getAllTestsMap().values(); 274 296 } 275 297 298 /** 299 * Gets all tests that are run 300 * @param beforeUpload To get the ones that are run before upload 301 * @return The tests 302 */ 276 303 public static Collection<Test> getEnabledTests(boolean beforeUpload) { 277 304 Collection<Test> enabledTests = getTests();
Note:
See TracChangeset
for help on using the changeset viewer.