Package org.openstreetmap.josm.command
Enum SplitWayCommand.WhenRelationOrderUncertain
- java.lang.Object
-
- java.lang.Enum<SplitWayCommand.WhenRelationOrderUncertain>
-
- org.openstreetmap.josm.command.SplitWayCommand.WhenRelationOrderUncertain
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SplitWayCommand.WhenRelationOrderUncertain>
- Enclosing class:
- SplitWayCommand
public static enum SplitWayCommand.WhenRelationOrderUncertain extends java.lang.Enum<SplitWayCommand.WhenRelationOrderUncertain>
What to do when the split way is part of relations, and the order of the new parts in the relation cannot be determined without downloading missing relation members.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORT
If there are relation members missing, and these are needed to determine the order of the new parts in that relation, abort the split operation.ASK_USER_FOR_CONSENT_TO_DOWNLOAD
Ask the user to consent to downloading the missing members.DOWNLOAD_MISSING_MEMBERS
If there are relation members missing, and these are needed to determine the order of the new parts in that relation, automatically download these without prompting the user.SPLIT_ANYWAY
If there are relation members missing, and these are needed to determine the order of the new parts in that relation, continue with the split operation anyway, without downloading anything.
-
Constructor Summary
Constructors Modifier Constructor Description private
WhenRelationOrderUncertain()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SplitWayCommand.WhenRelationOrderUncertain
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SplitWayCommand.WhenRelationOrderUncertain[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ASK_USER_FOR_CONSENT_TO_DOWNLOAD
public static final SplitWayCommand.WhenRelationOrderUncertain ASK_USER_FOR_CONSENT_TO_DOWNLOAD
Ask the user to consent to downloading the missing members. The user can abort the operation or choose to proceed without downloading anything.
-
ABORT
public static final SplitWayCommand.WhenRelationOrderUncertain ABORT
If there are relation members missing, and these are needed to determine the order of the new parts in that relation, abort the split operation.
-
SPLIT_ANYWAY
public static final SplitWayCommand.WhenRelationOrderUncertain SPLIT_ANYWAY
If there are relation members missing, and these are needed to determine the order of the new parts in that relation, continue with the split operation anyway, without downloading anything. Caution: use this option with care.
-
DOWNLOAD_MISSING_MEMBERS
public static final SplitWayCommand.WhenRelationOrderUncertain DOWNLOAD_MISSING_MEMBERS
If there are relation members missing, and these are needed to determine the order of the new parts in that relation, automatically download these without prompting the user.
-
-
Constructor Detail
-
WhenRelationOrderUncertain
private WhenRelationOrderUncertain()
-
-
Method Detail
-
values
public static SplitWayCommand.WhenRelationOrderUncertain[] 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 (SplitWayCommand.WhenRelationOrderUncertain c : SplitWayCommand.WhenRelationOrderUncertain.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SplitWayCommand.WhenRelationOrderUncertain 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
-
-