Class FixDataHook
- java.lang.Object
-
- org.openstreetmap.josm.actions.upload.FixDataHook
-
- All Implemented Interfaces:
UploadHook
public class FixDataHook extends java.lang.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 interfaceFixDataHook.FixDataCommon set of commands for data fixingstatic classFixDataHook.FixDataKeyData fix to cleanup wrong spelled keysstatic classFixDataHook.FixDataSpaceData fix to remove spaces at begin or end of tagsstatic classFixDataHook.FixDataTagData fix to cleanup wrong spelled tags
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<FixDataHook.FixData>deprecatedList of checks to run on dataprivate static java.lang.StringONEWAY
-
Constructor Summary
Constructors Constructor Description FixDataHook()Constructor for data initialization
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckUpload(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 java.lang.String ONEWAY
- See Also:
- Constant Field Values
-
deprecated
private final java.util.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:
checkUploadin interfaceUploadHook- Parameters:
apiDataSet- the data to upload- Returns:
trueif upload is possible,falseto block the upload.
-
-