Package org.openstreetmap.josm.io
Enum MaxChangesetSizeExceededPolicy
- java.lang.Object
-
- java.lang.Enum<MaxChangesetSizeExceededPolicy>
-
- org.openstreetmap.josm.io.MaxChangesetSizeExceededPolicy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MaxChangesetSizeExceededPolicy>
public enum MaxChangesetSizeExceededPolicy extends java.lang.Enum<MaxChangesetSizeExceededPolicy>
This determines what to do when the max changeset size was exceeded by a upload.- Since:
- 12687 (moved from
gui.io
package)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORT
Abort uploading.AUTOMATICALLY_OPEN_NEW_CHANGESETS
Automatically open as many new changesets as necessary to upload the data.FILL_ONE_CHANGESET_AND_RETURN_TO_UPLOAD_DIALOG
Fill one changeset.
-
Constructor Summary
Constructors Modifier Constructor Description private
MaxChangesetSizeExceededPolicy()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MaxChangesetSizeExceededPolicy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MaxChangesetSizeExceededPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ABORT
public static final MaxChangesetSizeExceededPolicy ABORT
Abort uploading. Send the user back to map editing.
-
FILL_ONE_CHANGESET_AND_RETURN_TO_UPLOAD_DIALOG
public static final MaxChangesetSizeExceededPolicy FILL_ONE_CHANGESET_AND_RETURN_TO_UPLOAD_DIALOG
Fill one changeset. If it is full send the user back to the upload dialog where he can choose another changeset or another upload strategy if he or she wants to.
-
AUTOMATICALLY_OPEN_NEW_CHANGESETS
public static final MaxChangesetSizeExceededPolicy AUTOMATICALLY_OPEN_NEW_CHANGESETS
Automatically open as many new changesets as necessary to upload the data.
-
-
Constructor Detail
-
MaxChangesetSizeExceededPolicy
private MaxChangesetSizeExceededPolicy()
-
-
Method Detail
-
values
public static MaxChangesetSizeExceededPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MaxChangesetSizeExceededPolicy c : MaxChangesetSizeExceededPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MaxChangesetSizeExceededPolicy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-