|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.data.validation.OsmValidator
public class OsmValidator
A OSM data validator
Field Summary | |
---|---|
static java.lang.Class<Test>[] |
allAvailableTests
All available tests TODO: is there any way to find out automatically all available tests? |
static ValidatorLayer |
errorLayer
|
static double |
griddetail
Grid detail, multiplier of east,north values for valuable cell sizing |
static java.util.Collection<java.lang.String> |
ignoredErrors
|
Constructor Summary | |
---|---|
OsmValidator()
|
Method Summary | |
---|---|
void |
activeLayerChange(Layer oldLayer,
Layer newLayer)
Notifies this listener that the active layer has changed. |
static void |
addIgnoredError(java.lang.String s)
|
private static void |
applyPrefs(java.util.Map<java.lang.String,Test> tests,
boolean beforeUpload)
|
private void |
checkValidatorDir()
Check if plugin directory exists (store ignored errors file) |
static java.lang.Class<Test>[] |
getAllAvailableTests()
Gets the list of all available test classes |
static java.util.Map<java.lang.String,Test> |
getAllTestsMap()
Gets a map from simple names to all tests. |
static java.util.Collection<Test> |
getEnabledTests(boolean beforeUpload)
|
static java.util.Collection<Test> |
getTests()
|
static java.lang.String |
getValidatorDir()
Returns the plugin's directory of the plugin |
static boolean |
hasIgnoredError(java.lang.String s)
|
static void |
initializeErrorLayer()
|
void |
initializeGridDetail()
Initialize grid details based on current projection system. |
static void |
initializeTests(java.util.Collection<Test> allTests)
Initializes all tests |
void |
layerAdded(Layer newLayer)
Notifies this listener that a layer has been added. |
void |
layerRemoved(Layer oldLayer)
Notifies this listener that a layer has been removed. |
private void |
loadIgnoredErrors()
|
static void |
saveIgnoredErrors()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static ValidatorLayer errorLayer
public static double griddetail
public static final java.util.Collection<java.lang.String> ignoredErrors
public static java.lang.Class<Test>[] allAvailableTests
Constructor Detail |
---|
public OsmValidator()
Method Detail |
---|
public static java.lang.String getValidatorDir()
private void checkValidatorDir()
private void loadIgnoredErrors()
public static void addIgnoredError(java.lang.String s)
public static boolean hasIgnoredError(java.lang.String s)
public static void saveIgnoredErrors()
public static void initializeErrorLayer()
public static java.util.Map<java.lang.String,Test> getAllTestsMap()
private static void applyPrefs(java.util.Map<java.lang.String,Test> tests, boolean beforeUpload)
public static java.util.Collection<Test> getTests()
public static java.util.Collection<Test> getEnabledTests(boolean beforeUpload)
public static java.lang.Class<Test>[] getAllAvailableTests()
public void initializeGridDetail()
public static void initializeTests(java.util.Collection<Test> allTests)
allTests
- The tests to initializepublic void activeLayerChange(Layer oldLayer, Layer newLayer)
MapView.LayerChangeListener
activeLayerChange
in interface MapView.LayerChangeListener
oldLayer
- The previous active layernewLayer
- The new activer layerpublic void layerAdded(Layer newLayer)
MapView.LayerChangeListener
layerAdded
in interface MapView.LayerChangeListener
newLayer
- The new added layerpublic void layerRemoved(Layer oldLayer)
MapView.LayerChangeListener
layerRemoved
in interface MapView.LayerChangeListener
oldLayer
- The old removed layer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |