Class FixDataHook
- java.lang.Object
-
- org.openstreetmap.josm.actions.upload.FixDataHook
-
- All Implemented Interfaces:
UploadHook
public class FixDataHook extends Object implements UploadHook
Fixes defective data entries for all modified objects before upload- Since:
- 5621
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
FixDataHook.FixData
Common set of commands for data fixingstatic class
FixDataHook.FixDataKey
Data fix to cleanup wrong spelled keysstatic class
FixDataHook.FixDataSpace
Data fix to remove spaces at begin or end of tagsstatic class
FixDataHook.FixDataTag
Data fix to cleanup wrong spelled tags
-
Field Summary
Fields Modifier and Type Field Description private List<FixDataHook.FixData>
deprecated
List of checks to run on dataprivate static String
ONEWAY
-
Constructor Summary
Constructors Constructor Description FixDataHook()
Constructor for data initialization
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkUpload(APIDataSet apiDataSet)
Checks the upload for deprecated or wrong tags.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.josm.actions.upload.UploadHook
modifyChangesetTags
-
-
-
-
Field Detail
-
ONEWAY
private static final String ONEWAY
- See Also:
- Constant Field Values
-
deprecated
private final List<FixDataHook.FixData> deprecated
List of checks to run on data
-
-
Constructor Detail
-
FixDataHook
public FixDataHook()
Constructor for data initialization
-
-
Method Detail
-
checkUpload
public boolean checkUpload(APIDataSet apiDataSet)
Checks the upload for deprecated or wrong tags.- Specified by:
checkUpload
in interfaceUploadHook
- Parameters:
apiDataSet
- the data to upload- Returns:
true
if upload is possible,false
to block the upload.
-
-