Package | Description |
---|---|
org.openstreetmap.josm.actions |
Provides the classes for JOSM user actions.
|
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.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)
Constructs a new
ValidationTask |
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
|
private Test |
TestError.Builder.tester |
Modifier and Type | Field and Description |
---|---|
private static java.util.Collection<java.lang.Class<? extends Test>> |
OsmValidator.allTests
All registered tests
|
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.Collection<java.lang.Class<? extends Test>> |
OsmValidator.getAllAvailableTestClasses()
Gets the list of all available test classes
|
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)
Gets all tests that are run
|
static java.util.Collection<Test> |
OsmValidator.getTests()
Gets all tests that are possible
|
Modifier and Type | Method and Description |
---|---|
static TestError.Builder |
TestError.builder(Test tester,
Severity severity,
int code)
Starts building a new
TestError |
Modifier and Type | Method and Description |
---|---|
static void |
OsmValidator.addTest(java.lang.Class<? extends Test> testClass)
Adds a test to the list of available tests
|
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
|
static boolean |
OsmValidator.removeTest(java.lang.Class<? extends Test> testClass)
Removes a test from the list of available tests.
|
Constructor and Description |
---|
Builder(Test tester,
Severity severity,
int code) |
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/level
|
static class |
CrossingWays.Boundaries
Crossing boundaries ways test.
|
static class |
CrossingWays.SelfCrossing
Self crossing ways test (for all the rest)
|
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 very long segments.
|
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 |
RightAngleBuildingTest
Checks for buildings with angles close to right angle.
|
class |
SelfIntersectingWay
Checks for self-intersecting ways.
|
class |
SharpAngles
Find highways that have sharp angles
|
class |
SimilarNamedWays
Checks for similar named ways, symptom of a possible typo.
|
class |
TagChecker
Check for misspelled or wrong tags
|
class |
TurnrestrictionTest
Checks if turn restrictions 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
|
private java.util.List<TestError> |
MapCSSTagChecker.TagCheck.getErrorsForPrimitive(OsmPrimitive p,
Selector matchingSelector,
Environment env,
Test tester) |
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<Test> |
ValidatorTestsPreference.allTests
The list of all tests
|