Package | Description |
---|---|
org.openstreetmap.josm.actions | |
org.openstreetmap.josm.data.validation | |
org.openstreetmap.josm.data.validation.tests | |
org.openstreetmap.josm.gui.preferences.validator |
Provides classes for handling validator preferences.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<Test> |
ValidateAction.ValidationTask.tests |
Constructor and Description |
---|
ValidationTask(java.util.Collection<Test> tests,
java.util.Collection<OsmPrimitive> validatedPrimitives,
java.util.Collection<OsmPrimitive> formerValidatedPrimitives) |
Modifier and Type | Class and Description |
---|---|
static class |
Test.TagTest
A test that forwards all primitives to
Test.TagTest.check(OsmPrimitive) . |
Modifier and Type | Field and Description |
---|---|
private Test |
TestError.tester
The tester that raised this error
|
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.String,Test> |
OsmValidator.allTestsMap |
Modifier and Type | Method and Description |
---|---|
static <T extends Test> |
OsmValidator.getTest(java.lang.Class<T> testClass)
Returns the instance of the given test class.
|
Modifier and Type | Method and Description |
---|---|
Test |
TestError.getTester()
Gets the tester that raised this error
|
Modifier and Type | Method and Description |
---|---|
static java.util.SortedMap<java.lang.String,Test> |
OsmValidator.getAllTestsMap()
Gets a map from simple names to all tests.
|
static java.util.Collection<Test> |
OsmValidator.getEnabledTests(boolean beforeUpload) |
static java.util.Collection<Test> |
OsmValidator.getTests() |
Modifier and Type | Method and Description |
---|---|
void |
TestError.setTester(Test tester) |
Modifier and Type | Method and Description |
---|---|
private static void |
OsmValidator.applyPrefs(java.util.Map<java.lang.String,Test> tests,
boolean beforeUpload) |
static void |
OsmValidator.initializeTests(java.util.Collection<? extends Test> allTests)
Initializes all tests
|
Constructor and Description |
---|
FixableTestError(Test tester,
Severity severity,
java.lang.String message,
int code,
java.util.Collection<? extends OsmPrimitive> primitives,
java.util.Collection<?> highlighted,
Command fix)
Constructs a new
FixableTestError for multiple primitives. |
FixableTestError(Test tester,
Severity severity,
java.lang.String message,
int code,
java.util.Collection<? extends OsmPrimitive> primitives,
Command fix)
Constructs a new
FixableTestError for multiple primitives. |
FixableTestError(Test tester,
Severity severity,
java.lang.String message,
int code,
OsmPrimitive primitive,
Command fix)
Constructs a new
FixableTestError for a single primitive. |
FixableTestError(Test tester,
Severity severity,
java.lang.String message,
java.lang.String description,
java.lang.String descriptionEn,
int code,
java.util.Collection<? extends OsmPrimitive> primitives,
java.util.Collection<?> highlighted,
Command fix)
Constructs a new
FixableTestError for multiple primitives. |
FixableTestError(Test tester,
Severity severity,
java.lang.String message,
java.lang.String description,
java.lang.String descriptionEn,
int code,
java.util.Collection<? extends OsmPrimitive> primitives,
Command fix)
Constructs a new
FixableTestError for multiple primitives. |
FixableTestError(Test tester,
Severity severity,
java.lang.String message,
java.lang.String description,
java.lang.String descriptionEn,
int code,
OsmPrimitive primitive,
Command fix)
Constructs a new
FixableTestError for a single primitive. |
TestError(Test tester,
Severity severity,
java.lang.String message,
int code,
java.util.Collection<? extends OsmPrimitive> primitives)
Constructs a new
TestError without description. |
TestError(Test tester,
Severity severity,
java.lang.String message,
int code,
java.util.Collection<? extends OsmPrimitive> primitives,
java.util.Collection<?> highlighted)
Constructs a new
TestError without description. |
TestError(Test tester,
Severity severity,
java.lang.String message,
int code,
OsmPrimitive primitive)
Constructs a new
TestError without description, for a single primitive. |
TestError(Test tester,
Severity severity,
java.lang.String message,
java.lang.String description,
java.lang.String descriptionEn,
int code,
java.util.Collection<? extends OsmPrimitive> primitives)
Constructs a new
TestError . |
TestError(Test tester,
Severity severity,
java.lang.String message,
java.lang.String description,
java.lang.String descriptionEn,
int code,
java.util.Collection<? extends OsmPrimitive> primitives,
java.util.Collection<?> highlighted)
Constructs a new
TestError . |
TestError(Test tester,
Severity severity,
java.lang.String message,
java.lang.String description,
java.lang.String descriptionEn,
int code,
OsmPrimitive primitive)
Constructs a new
TestError for a single primitive. |
Modifier and Type | Class and Description |
---|---|
class |
Addresses
Performs validation tests on addresses (addr:housenumber) and associatedStreet relations.
|
class |
ApiCapabilitiesTest
Performs validation tests against OSM API capabilities.
|
class |
BarriersEntrances
Performs validation tests on barriers and entrances.
|
class |
Coastlines
Check coastlines for errors
|
class |
ConditionalKeys
Checks for conditional restrictions
|
class |
CrossingWays
Tests if there are segments that crosses in the same layer
|
static class |
CrossingWays.Barrier
Crossing barriers ways test.
|
static class |
CrossingWays.Boundaries
Crossing boundaries ways test.
|
static class |
CrossingWays.Ways
General crossing ways test.
|
class |
DuplicatedWayNodes
Checks for ways with identical consecutive nodes.
|
class |
DuplicateNode
Tests if there are duplicate nodes
|
class |
DuplicateRelation
Tests if there are duplicate relations
|
class |
DuplicateWay
Tests if there are duplicate ways
|
class |
Highways
Test that performs semantic checks on highways.
|
class |
InternetTags
Performs validation tests on internet-related tags (websites, e-mail addresses, etc.).
|
class |
Lanes
Test that validates
lane: tags. |
class |
LongSegment
Checks for untagged ways
|
class |
MapCSSTagChecker
MapCSS-based tag checker/fixer.
|
(package private) static class |
MapCSSTagChecker.MapCSSTagCheckerAndRule |
class |
MultipolygonTest
Checks if multipolygons are valid
|
class |
NameMismatch
Check for missing name:* translations.
|
class |
OpeningHourTest
Tests the correct usage of the opening hour syntax of the tags
opening_hours , collection_times , service_times according to
opening_hours.js. |
class |
OverlappingWays
Tests if there are overlapping ways.
|
class |
PowerLines
Checks for nodes in power lines/minor_lines that do not have a power=tower/pole tag.
See #7812 for discussions about this test. |
class |
PublicTransportRouteTest
Tests for public transport routes.
|
class |
RelationChecker
Check for wrong relations.
|
class |
SelfIntersectingWay
Checks for self-intersecting ways.
|
class |
SimilarNamedWays
Checks for similar named ways, symptom of a possible typo.
|
class |
TagChecker
Check for misspelled or wrong tags
|
class |
TurnrestrictionTest
Checks if turnrestrictions are valid
|
class |
UnclosedWays
Check area type ways for errors
|
class |
UnconnectedWays
Checks if a way has an endpoint very near to another way.
|
static class |
UnconnectedWays.UnconnectedHighways
Unconnected highways test.
|
static class |
UnconnectedWays.UnconnectedNaturalOrLanduse
Unconnected natural/landuse test.
|
static class |
UnconnectedWays.UnconnectedPower
Unconnected power ways test.
|
static class |
UnconnectedWays.UnconnectedRailways
Unconnected railways test.
|
static class |
UnconnectedWays.UnconnectedWaterways
Unconnected waterways test.
|
class |
UntaggedNode
Checks for nodes with uninteresting tags that are in no way
|
class |
UntaggedWay
Checks for untagged ways
|
class |
WayConnectedToArea
Checks for ways connected to areas.
|
class |
WronglyOrderedWays
Check cyclic ways for errors
|
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
|
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<Test> |
ValidatorTestsPreference.allTests
The list of all tests
|