public class ApiPreconditionCheckerHook extends java.lang.Object implements UploadHook
Capabilities.| Constructor and Description |
|---|
ApiPreconditionCheckerHook() |
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
checkMaxNodes(java.util.Collection<OsmPrimitive> primitives,
long maxNodes) |
boolean |
checkUpload(APIDataSet apiData)
Check, and/or change, the data to be uploaded.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmodifyChangesetTagspublic ApiPreconditionCheckerHook()
public boolean checkUpload(APIDataSet apiData)
UploadHookcheckUpload in interface UploadHookapiData - the data to upload, modify this to change the data.true if upload is possible, false to block the upload.private static boolean checkMaxNodes(java.util.Collection<OsmPrimitive> primitives, long maxNodes)