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 void
CreateMultipolygonAction. 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 boolean
ValidateUploadHook. 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. errors
The list of errorsprivate java.util.List<TestError>
ValidationTask. errors
private java.util.function.Consumer<java.util.List<TestError>>
ValidationTask. onFinish
Methods in org.openstreetmap.josm.data.validation that return TestError Modifier and Type Method Description TestError
TestError.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 int
TestError. compareTo(TestError o)
Command
Test. fixError(TestError testError)
Fixes the error with the appropriate commandboolean
Test. isFixable(TestError testError)
Returns true if the given error can be fixed automaticallyboolean
TestError. 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.void
ValidatorVisitor. 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 void
ValidatorCLI. 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 TestError
Addresses. checkHouseNumbersWithoutStreet(OsmPrimitive p)
Checks for house numbers for which the street is unknown.private TestError
OpeningHourTest. 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.TestError
UnclosedWays.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 thevalue
given, 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 thevalue
given, 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 aTestError
for 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 void
MapCSSTagChecker. addIfNotSimilar(TestError toAdd, java.util.List<TestError> errors)
See #12627 Add error to given list if list doesn't already contain a similar error.Command
Addresses. fixError(TestError testError)
remove obsolete relation.Command
Coastlines. fixError(TestError testError)
Command
DuplicatedWayNodes. fixError(TestError testError)
Command
DuplicateNode. fixError(TestError testError)
Merge the nodes into one.Command
DuplicateRelation. fixError(TestError testError)
Fix the error by removing all but one instance of duplicate relationsCommand
DuplicateWay. fixError(TestError testError)
Fix the error by removing all but one instance of duplicate waysCommand
MultipolygonTest. fixError(TestError testError)
Command
RelationChecker. fixError(TestError testError)
Command
TagChecker. fixError(TestError testError)
Command
UntaggedNode. fixError(TestError testError)
Command
UntaggedWay. fixError(TestError testError)
boolean
Addresses. isFixable(TestError testError)
boolean
Coastlines. isFixable(TestError testError)
boolean
DuplicatedWayNodes. isFixable(TestError testError)
boolean
DuplicateNode. isFixable(TestError testError)
boolean
DuplicateRelation. isFixable(TestError testError)
boolean
DuplicateWay. isFixable(TestError testError)
boolean
MultipolygonTest. isFixable(TestError testError)
boolean
RelationChecker. isFixable(TestError testError)
boolean
TagChecker. isFixable(TestError testError)
boolean
UntaggedNode. isFixable(TestError testError)
boolean
UntaggedWay. isFixable(TestError testError)
Method parameters in org.openstreetmap.josm.data.validation.tests with type arguments of type TestError Modifier and Type Method Description void
OpeningHourTest. 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 void
MapCSSTagChecker. 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 boolean
MultipolygonTest. 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. testErrors
Methods in org.openstreetmap.josm.gui.dialogs that return TestError Modifier and Type Method Description TestError
ValidatorDialog. 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 void
ValidatorDialog.FixTask. fixError(TestError error)
void
ValidatorDialog.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. errors
The 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.String
ValidatorTreePanel. getTesterDetails(TestError e)
Method parameters in org.openstreetmap.josm.gui.dialogs.validator with type arguments of type TestError Modifier and Type Method Description void
ValidatorTreePanel. setErrorList(java.util.List<TestError> errors)
Sets the errors list used by a data layervoid
ValidatorTreePanel. setErrors(java.util.List<TestError> newerrors)
Clears the current error list and adds these errors to itstatic void
ValidatorTreePanel. visitTestErrors(javax.swing.tree.DefaultMutableTreeNode root, java.util.function.Consumer<TestError> visitor)
Visitor call for allTestError
nodes children of root, in breadth-first order.static void
ValidatorTreePanel. visitTestErrors(javax.swing.tree.DefaultMutableTreeNode root, java.util.function.Consumer<TestError> visitor, java.util.Set<javax.swing.tree.DefaultMutableTreeNode> processedNodes)
Visitor call for allTestError
nodes 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. validationErrors
List 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 void
PaintVisitor. 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 void
ValidatorErrorWriter. write(java.util.Collection<TestError> validationErrors)
Write validator errors to designated output target
-