Uses of Class
org.openstreetmap.josm.data.validation.TestError
-
Packages that use TestError Package Description org.openstreetmap.josm.actions Provides the classes for JOSM user actions.org.openstreetmap.josm.actions.upload Provides the classes for JOSMupload action.org.openstreetmap.josm.data.validation Provides the classes for JOSM data validation.org.openstreetmap.josm.data.validation.tests Provides the classes for JOSM data validation tests.org.openstreetmap.josm.gui.dialogs 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 elseorg.openstreetmap.josm.gui.dialogs.validator Toggle dialog allowing to launch data validation and display validation results (errors and warnings).org.openstreetmap.josm.gui.layer Provides classes for handling the different kinds of map layers.org.openstreetmap.josm.gui.layer.validation Provides classes for handling validation layer.org.openstreetmap.josm.io 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 TestError Modifier and Type Method Description private static voidCreateMultipolygonAction. showErrors(java.util.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 TestError Modifier and Type Method Description private static booleanValidateUploadHook. displayErrorScreen(java.util.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 TestError Modifier and Type Field Description protected java.util.List<TestError>Test. errorsThe list of errorsprivate java.util.List<TestError>ValidationTask. errorsprivate java.util.function.Consumer<java.util.List<TestError>>ValidationTask. onFinishMethods in org.openstreetmap.josm.data.validation that return TestError Modifier and Type Method Description TestErrorTestError.Builder. build()Returns a new test error with the specified valuesMethods in org.openstreetmap.josm.data.validation that return types with arguments of type TestError Modifier and Type Method Description java.util.List<TestError>Test. getErrors()Gets the validation errors accumulated until this moment.java.util.List<TestError>ValidationTask. getErrors()Gets the validation errors accumulated until this moment.static java.util.Map<Severity,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List<TestError>>>>OsmValidator. getErrorsBySeverityMessageDescription(java.util.Collection<TestError> errors, java.util.function.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 TestError Modifier and Type Method Description intTestError. compareTo(TestError o)CommandTest. fixError(TestError testError)Fixes the error with the appropriate commandbooleanTest. isFixable(TestError testError)Returns true if the given error can be fixed automaticallybooleanTestError. isSimilar(TestError other)Tests 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.voidValidatorVisitor. visit(TestError error)Visit a test errorMethod parameters in org.openstreetmap.josm.data.validation with type arguments of type TestError Modifier and Type Method Description static java.util.Map<Severity,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List<TestError>>>>OsmValidator. getErrorsBySeverityMessageDescription(java.util.Collection<TestError> errors, java.util.function.Predicate<? super TestError> filterToUse)Groups the given collection of errors by severity, then message, then description.static java.util.Map<Severity,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List<TestError>>>>OsmValidator. getErrorsBySeverityMessageDescription(java.util.Collection<TestError> errors, java.util.function.Predicate<? super TestError> filterToUse)Groups the given collection of errors by severity, then message, then description.private voidValidatorCLI. writeErrors(GeoJSONMapRouletteWriter geoJSONMapRouletteWriter, java.io.OutputStream fileOutputStream, java.util.Collection<TestError> errors)Constructor parameters in org.openstreetmap.josm.data.validation with type arguments of type TestError Constructor Description ValidationTask(java.util.function.Consumer<java.util.List<TestError>> onFinish, ProgressMonitor progressMonitor, java.util.Collection<Test> tests, java.util.Collection<OsmPrimitive> validatedPrimitives, java.util.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 TestError Modifier and Type Method Description protected TestErrorAddresses. checkHouseNumbersWithoutStreet(OsmPrimitive p)Checks for house numbers for which the street is unknown.private TestErrorOpeningHourTest. createTestError(Severity severity, java.lang.String message, java.lang.String key, java.lang.String value, java.lang.String prettifiedValue, OsmPrimitive p)Returns the real test error given to JOSM validator.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 TestError Modifier and Type Method Description java.util.List<TestError>DuplicateNode. buildTestErrors(Test parentTest, java.util.List<Node> nodes)Returns the list of "duplicate nodes" errors for the given selection of node and parent testprotected java.util.List<TestError>Addresses. checkForDuplicate(OsmPrimitive p)java.util.List<TestError>OpeningHourTest. checkOpeningHourSyntax(java.lang.String key, java.lang.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.(package private) java.util.List<TestError>OpeningHourTest. checkOpeningHourSyntax(java.lang.String key, java.lang.String value, OsmPrimitive p, java.util.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.private java.util.List<TestError>InternetTags. doValidateTag(OsmPrimitive p, java.lang.String k, java.lang.String v, AbstractValidator validator, int code)Validates a given primitive tag against a given validator.java.util.Collection<TestError>MapCSSTagChecker. getErrorsForPrimitive(OsmPrimitive p, boolean includeOtherSeverity)(package private) static java.util.Collection<TestError>MapCSSTagChecker. getErrorsForPrimitive(OsmPrimitive p, boolean includeOtherSeverity, java.util.Collection<java.util.Set<MapCSSTagCheckerRule>> checksCol)(package private) java.util.List<TestError>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.java.util.List<TestError>ConditionalKeys. validatePrimitive(OsmPrimitive p)Validate a primitivejava.util.List<TestError>InternetTags. validateTag(OsmPrimitive p, java.lang.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 TestError Modifier and Type Method Description private static voidMapCSSTagChecker. addIfNotSimilar(TestError toAdd, java.util.List<TestError> errors)See #12627 Add error to given list if list doesn't already contain a similar error.CommandAddresses. fixError(TestError testError)remove obsolete relation.CommandCoastlines. fixError(TestError testError)CommandDuplicatedWayNodes. fixError(TestError testError)CommandDuplicateNode. fixError(TestError testError)Merge the nodes into one.CommandDuplicateRelation. fixError(TestError testError)Fix the error by removing all but one instance of duplicate relationsCommandDuplicateWay. fixError(TestError testError)Fix the error by removing all but one instance of duplicate waysCommandMultipolygonTest. fixError(TestError testError)CommandRelationChecker. fixError(TestError testError)CommandTagChecker. fixError(TestError testError)CommandUntaggedNode. fixError(TestError testError)CommandUntaggedWay. fixError(TestError testError)booleanAddresses. isFixable(TestError testError)booleanCoastlines. isFixable(TestError testError)booleanDuplicatedWayNodes. isFixable(TestError testError)booleanDuplicateNode. isFixable(TestError testError)booleanDuplicateRelation. isFixable(TestError testError)booleanDuplicateWay. isFixable(TestError testError)booleanMultipolygonTest. isFixable(TestError testError)booleanRelationChecker. isFixable(TestError testError)booleanTagChecker. isFixable(TestError testError)booleanUntaggedNode. isFixable(TestError testError)booleanUntaggedWay. isFixable(TestError testError)Method parameters in org.openstreetmap.josm.data.validation.tests with type arguments of type TestError Modifier and Type Method Description voidOpeningHourTest. addErrorsForPrimitive(OsmPrimitive p, java.util.Collection<TestError> errors)Checks the tags of the given primitive and adds validation errors to the given list.private static voidMapCSSTagChecker. addIfNotSimilar(TestError toAdd, java.util.List<TestError> errors)See #12627 Add error to given list if list doesn't already contain a similar error.private booleanMultipolygonTest. checkMembersAndRoles(Relation r, java.util.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 TestError Modifier and Type Field Description private java.util.Collection<TestError>ValidatorDialog.FixTask. testErrorsMethods in org.openstreetmap.josm.gui.dialogs that return TestError Modifier and Type Method Description TestErrorValidatorDialog. getSelectedError()Replies the currently selected error, ornull.Methods in org.openstreetmap.josm.gui.dialogs with parameters of type TestError Modifier and Type Method Description protected voidValidatorDialog.FixTask. fixError(TestError error)voidValidatorDialog.ValidatorBoundingXYVisitor. visit(TestError error)Constructor parameters in org.openstreetmap.josm.gui.dialogs with type arguments of type TestError Constructor Description FixTask(java.util.Collection<TestError> testErrors) -
Uses of TestError in org.openstreetmap.josm.gui.dialogs.validator
Fields in org.openstreetmap.josm.gui.dialogs.validator with type parameters of type TestError Modifier and Type Field Description private java.util.List<TestError>ValidatorTreePanel. 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 TestError Modifier and Type Method Description java.util.List<TestError>ValidatorTreePanel. getErrors()Returns the errors of the treeMethods in org.openstreetmap.josm.gui.dialogs.validator with parameters of type TestError Modifier and Type Method Description private static java.lang.StringValidatorTreePanel. getTesterDetails(TestError e)Method parameters in org.openstreetmap.josm.gui.dialogs.validator with type arguments of type TestError Modifier and Type Method Description voidValidatorTreePanel. setErrorList(java.util.List<TestError> errors)Sets the errors list used by a data layervoidValidatorTreePanel. setErrors(java.util.List<TestError> newerrors)Clears the current error list and adds these errors to itstatic voidValidatorTreePanel. visitTestErrors(javax.swing.tree.DefaultMutableTreeNode root, java.util.function.Consumer<TestError> visitor)Visitor call for allTestErrornodes children of root, in breadth-first order.static voidValidatorTreePanel. visitTestErrors(javax.swing.tree.DefaultMutableTreeNode root, java.util.function.Consumer<TestError> visitor, java.util.Set<javax.swing.tree.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 Constructor Description ValidatorTreePanel(java.util.List<TestError> errors)Constructor -
Uses of TestError in org.openstreetmap.josm.gui.layer
Fields in org.openstreetmap.josm.gui.layer with type parameters of type TestError Modifier and Type Field Description java.util.List<TestError>OsmDataLayer. 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 Modifier and Type Method Description voidPaintVisitor. visit(TestError error) -
Uses of TestError in org.openstreetmap.josm.io
Methods in org.openstreetmap.josm.io with parameters of type TestError Modifier and Type Method Description java.util.Optional<jakarta.json.JsonObject>GeoJSONMapRouletteWriter. write(TestError testError)Convert a test error to a stringMethod parameters in org.openstreetmap.josm.io with type arguments of type TestError Modifier and Type Method Description voidValidatorErrorWriter. write(java.util.Collection<TestError> validationErrors)Write validator errors to designated output target
-