Package | Description |
---|---|
org.openstreetmap.josm.actions |
Provides the classes for JOSM user actions.
|
org.openstreetmap.josm.actions.upload |
Provides the classes for JOSM
upload 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 else
|
org.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.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<TestError> |
ValidateAction.ValidationTask.errors |
Modifier and Type | Method and Description |
---|---|
private static void |
CreateMultipolygonAction.showErrors(java.util.List<TestError> errors) |
Modifier and Type | Method and 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.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<TestError> |
Test.errors
The list of errors
|
Modifier and Type | Method and Description |
---|---|
TestError |
TestError.Builder.build()
Returns a new test error with the specified values
|
Modifier and Type | Method and Description |
---|---|
java.util.List<TestError> |
Test.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.
|
Modifier and Type | Method and Description |
---|---|
int |
TestError.compareTo(TestError o) |
Command |
Test.fixError(TestError testError)
Fixes the error with the appropriate command
|
boolean |
Test.isFixable(TestError testError)
Returns true if the given error can be fixed automatically
|
void |
ValidatorVisitor.visit(TestError error)
Visit a test error
|
Modifier and Type | Method and 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.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<TestError> |
PowerLines.potentialErrors |
Modifier and Type | Method and Description |
---|---|
protected TestError |
Addresses.checkHouseNumbersWithoutStreet(OsmPrimitive p)
Checks for house numbers for which the street is unknown.
|
TestError |
OpeningHourTest.OpeningHoursTestError.getTestError(OsmPrimitive p,
java.lang.String key)
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.
|
Modifier and Type | Method and 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 test
|
protected java.util.List<TestError> |
Addresses.checkForDuplicate(OsmPrimitive p) |
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.
|
(package private) java.util.List<TestError> |
MapCSSTagChecker.TagCheck.getErrorsForPrimitive(OsmPrimitive p)
Constructs a
TestError for the given primitive, or returns null if the primitive does not give rise to an error. |
java.util.Collection<TestError> |
MapCSSTagChecker.getErrorsForPrimitive(OsmPrimitive p,
boolean includeOtherSeverity)
|
private static java.util.Collection<TestError> |
MapCSSTagChecker.getErrorsForPrimitive(OsmPrimitive p,
boolean includeOtherSeverity,
java.util.Collection<java.util.Set<MapCSSTagChecker.TagCheck>> checksCol) |
private java.util.List<TestError> |
MapCSSTagChecker.TagCheck.getErrorsForPrimitive(OsmPrimitive p,
Selector matchingSelector,
Environment env,
Test tester) |
java.util.List<TestError> |
ConditionalKeys.validatePrimitive(OsmPrimitive p)
Validate a primitive
|
java.util.List<TestError> |
InternetTags.validateTag(OsmPrimitive p,
java.lang.String k,
AbstractValidator validator,
int code)
Validates a given primitive tag against a given validator.
|
Modifier and Type | Method and 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 |
MultipolygonTest.fixError(TestError testError) |
Command |
RelationChecker.fixError(TestError testError) |
Command |
Coastlines.fixError(TestError testError) |
Command |
DuplicateNode.fixError(TestError testError)
Merge the nodes into one.
|
Command |
UntaggedWay.fixError(TestError testError) |
Command |
UntaggedNode.fixError(TestError testError) |
Command |
DuplicateRelation.fixError(TestError testError)
Fix the error by removing all but one instance of duplicate relations
|
Command |
Addresses.fixError(TestError testError)
remove obsolete relation.
|
Command |
TagChecker.fixError(TestError testError) |
Command |
DuplicateWay.fixError(TestError testError)
Fix the error by removing all but one instance of duplicate ways
|
Command |
DuplicatedWayNodes.fixError(TestError testError) |
boolean |
MultipolygonTest.isFixable(TestError testError) |
boolean |
RelationChecker.isFixable(TestError testError) |
boolean |
Coastlines.isFixable(TestError testError) |
boolean |
DuplicateNode.isFixable(TestError testError) |
boolean |
UntaggedWay.isFixable(TestError testError) |
boolean |
UntaggedNode.isFixable(TestError testError) |
boolean |
DuplicateRelation.isFixable(TestError testError) |
boolean |
Addresses.isFixable(TestError testError) |
boolean |
TagChecker.isFixable(TestError testError) |
boolean |
DuplicateWay.isFixable(TestError testError) |
boolean |
DuplicatedWayNodes.isFixable(TestError testError) |
Modifier and Type | Method and 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.
|
private boolean |
MultipolygonTest.checkMembersAndRoles(Relation r,
java.util.List<TestError> tmpErrors)
Check for:
MultipolygonTest.WRONG_MEMBER_ROLE : No useful role for multipolygon member
MultipolygonTest.WRONG_MEMBER_TYPE : Non-Way in multipolygon
|
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<TestError> |
ValidatorDialog.FixTask.testErrors |
Modifier and Type | Method and Description |
---|---|
TestError |
ValidatorDialog.getSelectedError()
Replies the currently selected error, or
null . |
Modifier and Type | Method and Description |
---|---|
protected void |
ValidatorDialog.FixTask.fixError(TestError error) |
void |
ValidatorDialog.ValidatorBoundingXYVisitor.visit(TestError error) |
Constructor and Description |
---|
FixTask(java.util.Collection<TestError> testErrors) |
Modifier and Type | Field and Description |
---|---|
private java.util.List<TestError> |
ValidatorTreePanel.errors
The list of errors shown in the tree, normally identical to field validationErrors in current edit layer
|
Modifier and Type | Method and Description |
---|---|
java.util.List<TestError> |
ValidatorTreePanel.getErrors()
Returns the errors of the tree
|
Modifier and Type | Method and Description |
---|---|
void |
ValidatorTreePanel.setErrorList(java.util.List<TestError> errors)
Sets the errors list used by a data layer
|
void |
ValidatorTreePanel.setErrors(java.util.List<TestError> newerrors)
Clears the current error list and adds these errors to it
|
static void |
ValidatorTreePanel.visitTestErrors(javax.swing.tree.DefaultMutableTreeNode root,
java.util.function.Consumer<TestError> visitor)
Visitor call for all
TestError 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 all
TestError nodes children of root, in breadth-first order. |
Constructor and Description |
---|
ValidatorTreePanel(java.util.List<TestError> errors)
Constructor
|
Modifier and Type | Field and Description |
---|---|
java.util.List<TestError> |
OsmDataLayer.validationErrors
List of validation errors in this layer.
|
Modifier and Type | Method and Description |
---|---|
void |
PaintVisitor.visit(TestError error) |
Modifier and Type | Method and Description |
---|---|
void |
ValidatorErrorWriter.write(java.util.Collection<TestError> validationErrors)
Write validator errors to designated output target
|