Uses of Class
org.openstreetmap.josm.data.validation.TestError
Packages that use TestError
Package
Description
Provides the classes for JOSM user actions.
Provides the classes for JOSM
upload action.Provides the classes for JOSM data validation.
Provides the classes for JOSM data validation tests.
Provides three kinds of dialogs:
Toggle dialogs on the right side of the GUI, that can be turned on, off, attached or detached from the GUI
Changeset dialog based on a standalone implementation, dedicated to OSM changesets management
Extended dialogs for everything else
Toggle dialog allowing to launch data validation and display validation results (errors and warnings).
Provides classes for handling the different kinds of map layers.
Provides classes for handling validation layer.
Provides the classes for JOSM input/output support.
-
Uses of TestError in org.openstreetmap.josm.actions
Method parameters in org.openstreetmap.josm.actions with type arguments of type TestErrorModifier and TypeMethodDescriptionprivate static voidCreateMultipolygonAction.showErrors(List<TestError> errors) -
Uses of TestError in org.openstreetmap.josm.actions.upload
Method parameters in org.openstreetmap.josm.actions.upload with type arguments of type TestErrorModifier and TypeMethodDescriptionprivate static booleanValidateUploadHook.displayErrorScreen(List<TestError> errors) Displays a screen where the actions that would be taken are displayed and give the user the possibility to cancel the upload. -
Uses of TestError in org.openstreetmap.josm.data.validation
Fields in org.openstreetmap.josm.data.validation with type parameters of type TestErrorModifier and TypeFieldDescriptionTest.errorsThe list of errorsValidationTask.errorsValidationTask.onFinishMethods in org.openstreetmap.josm.data.validation that return TestErrorModifier and TypeMethodDescriptionTestError.Builder.build()Returns a new test error with the specified valuesMethods in org.openstreetmap.josm.data.validation that return types with arguments of type TestErrorModifier and TypeMethodDescriptionTest.getErrors()Gets the validation errors accumulated until this moment.ValidationTask.getErrors()Gets the validation errors accumulated until this moment.OsmValidator.getErrorsBySeverityMessageDescription(Collection<TestError> errors, Predicate<? super TestError> filterToUse) Groups the given collection of errors by severity, then message, then description.Methods in org.openstreetmap.josm.data.validation with parameters of type TestErrorModifier and TypeMethodDescriptionintFixes the error with the appropriate commandbooleanReturns true if the given error can be fixed automaticallybooleanTests if two errors are similar, i.e., same code and description and same combination of primitives and same combination of highlighted objects, but maybe with different orders.voidVisit a test errorMethod parameters in org.openstreetmap.josm.data.validation with type arguments of type TestErrorModifier and TypeMethodDescriptionOsmValidator.getErrorsBySeverityMessageDescription(Collection<TestError> errors, Predicate<? super TestError> filterToUse) Groups the given collection of errors by severity, then message, then description.OsmValidator.getErrorsBySeverityMessageDescription(Collection<TestError> errors, Predicate<? super TestError> filterToUse) Groups the given collection of errors by severity, then message, then description.private voidValidatorCLI.writeErrors(GeoJSONMapRouletteWriter geoJSONMapRouletteWriter, OutputStream fileOutputStream, Collection<TestError> errors) Constructor parameters in org.openstreetmap.josm.data.validation with type arguments of type TestErrorModifierConstructorDescriptionValidationTask(Consumer<List<TestError>> onFinish, ProgressMonitor progressMonitor, Collection<Test> tests, Collection<OsmPrimitive> validatedPrimitives, Collection<OsmPrimitive> formerValidatedPrimitives, boolean beforeUpload) Constructs a newValidationTask -
Uses of TestError in org.openstreetmap.josm.data.validation.tests
Methods in org.openstreetmap.josm.data.validation.tests that return TestErrorModifier and TypeMethodDescriptionprotected TestErrorAddresses.checkHouseNumbersWithoutStreet(OsmPrimitive p) Checks for house numbers for which the street is unknown.private TestErrorOpeningHourTest.createTestError(Severity severity, String message, String key, String value, String prettifiedValue, OsmPrimitive p) Returns the real test error given to JOSM validator.final TestErrorUnclosedWays.UnclosedWaysCheck.getTestError(Way w, UnclosedWays test) Returns the test error of the given way, if any.Methods in org.openstreetmap.josm.data.validation.tests that return types with arguments of type TestErrorModifier and TypeMethodDescriptionDuplicateNode.buildTestErrors(Test parentTest, List<Node> nodes) Returns the list of "duplicate nodes" errors for the given selection of node and parent testAddresses.checkForDuplicate(OsmPrimitive p) OpeningHourTest.checkOpeningHourSyntax(String key, String value) Checks for a correct usage of the opening hour syntax of thevaluegiven, and returns a list containing validation errors or an empty list.OpeningHourTest.checkOpeningHourSyntax(String key, String value, OsmPrimitive p, Locale locale) Checks for a correct usage of the opening hour syntax of thevaluegiven, and returns a list containing validation errors or an empty list.InternetTags.doValidateTag(OsmPrimitive p, String k, String v, AbstractValidator validator, int code) Validates a given primitive tag against a given validator.MapCSSTagChecker.getErrorsForPrimitive(OsmPrimitive p, boolean includeOtherSeverity) (package private) static Collection<TestError>MapCSSTagChecker.getErrorsForPrimitive(OsmPrimitive p, boolean includeOtherSeverity, Collection<Set<MapCSSTagCheckerRule>> checksCol) MapCSSTagCheckerRule.getErrorsForPrimitive(OsmPrimitive p, Selector matchingSelector, Environment env, Test tester) Constructs aTestErrorfor the given primitive, or returns null if the primitive does not give rise to an error.ConditionalKeys.validatePrimitive(OsmPrimitive p) Validate a primitiveInternetTags.validateTag(OsmPrimitive p, String k, AbstractValidator validator, int code) Validates a given primitive tag against a given validator.Methods in org.openstreetmap.josm.data.validation.tests with parameters of type TestErrorModifier and TypeMethodDescriptionprivate static voidMapCSSTagChecker.addIfNotSimilar(TestError toAdd, List<TestError> errors) See #12627 Add error to given list if list doesn't already contain a similar error.remove obsolete relation.Merge the nodes into one.Fix the error by removing all but one instance of duplicate relationsFix the error by removing all but one instance of duplicate waysbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanMethod parameters in org.openstreetmap.josm.data.validation.tests with type arguments of type TestErrorModifier and TypeMethodDescriptionvoidOpeningHourTest.addErrorsForPrimitive(OsmPrimitive p, Collection<TestError> errors) Checks the tags of the given primitive and adds validation errors to the given list.private static voidMapCSSTagChecker.addIfNotSimilar(TestError toAdd, List<TestError> errors) See #12627 Add error to given list if list doesn't already contain a similar error.private booleanMultipolygonTest.checkMembersAndRoles(Relation r, List<TestError> tmpErrors) Check for:MultipolygonTest.WRONG_MEMBER_ROLE: No useful role for multipolygon memberMultipolygonTest.WRONG_MEMBER_TYPE: Non-Way in multipolygon -
Uses of TestError in org.openstreetmap.josm.gui.dialogs
Fields in org.openstreetmap.josm.gui.dialogs with type parameters of type TestErrorModifier and TypeFieldDescriptionprivate final Collection<TestError>ValidatorDialog.FixTask.testErrorsMethods in org.openstreetmap.josm.gui.dialogs that return TestErrorModifier and TypeMethodDescriptionValidatorDialog.getSelectedError()Replies the currently selected error, ornull.Methods in org.openstreetmap.josm.gui.dialogs with parameters of type TestErrorModifier and TypeMethodDescriptionprotected voidvoidConstructor parameters in org.openstreetmap.josm.gui.dialogs with type arguments of type TestError -
Uses of TestError in org.openstreetmap.josm.gui.dialogs.validator
Fields in org.openstreetmap.josm.gui.dialogs.validator with type parameters of type TestErrorModifier and TypeFieldDescriptionValidatorTreePanel.errorsThe list of errors shown in the tree, normally identical to field validationErrors in current edit layerMethods in org.openstreetmap.josm.gui.dialogs.validator that return types with arguments of type TestErrorMethods in org.openstreetmap.josm.gui.dialogs.validator with parameters of type TestErrorModifier and TypeMethodDescriptionprivate static StringValidatorTreePanel.getTesterDetails(TestError e) Method parameters in org.openstreetmap.josm.gui.dialogs.validator with type arguments of type TestErrorModifier and TypeMethodDescriptionfinal voidValidatorTreePanel.setErrorList(List<TestError> errors) Sets the errors list used by a data layervoidClears the current error list and adds these errors to itstatic voidValidatorTreePanel.visitTestErrors(DefaultMutableTreeNode root, Consumer<TestError> visitor) Visitor call for allTestErrornodes children of root, in breadth-first order.static voidValidatorTreePanel.visitTestErrors(DefaultMutableTreeNode root, Consumer<TestError> visitor, Set<DefaultMutableTreeNode> processedNodes) Visitor call for allTestErrornodes children of root, in breadth-first order.Constructor parameters in org.openstreetmap.josm.gui.dialogs.validator with type arguments of type TestError -
Uses of TestError in org.openstreetmap.josm.gui.layer
Fields in org.openstreetmap.josm.gui.layer with type parameters of type TestErrorModifier and TypeFieldDescriptionOsmDataLayer.validationErrorsList of validation errors in this layer. -
Uses of TestError in org.openstreetmap.josm.gui.layer.validation
Methods in org.openstreetmap.josm.gui.layer.validation with parameters of type TestError -
Uses of TestError in org.openstreetmap.josm.io
Methods in org.openstreetmap.josm.io with parameters of type TestErrorModifier and TypeMethodDescriptionOptional<jakarta.json.JsonObject>Convert a test error to a stringMethod parameters in org.openstreetmap.josm.io with type arguments of type TestErrorModifier and TypeMethodDescriptionvoidValidatorErrorWriter.write(Collection<TestError> validationErrors) Write validator errors to designated output target