Package com.spotfire.ws.pub
Enum LibraryConflictResolution
- java.lang.Object
-
- java.lang.Enum<LibraryConflictResolution>
-
- com.spotfire.ws.pub.LibraryConflictResolution
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LibraryConflictResolution>
public enum LibraryConflictResolution extends java.lang.Enum<LibraryConflictResolution>
Represent a conflict resolution strategy used when copying or moving items in the Library.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description KEEP_BOTH
An item with the same name or ID as an existing item will be renamed/get a new ID.KEEP_NEW
An item with the same name or ID as an existing item will overwrite the existing item.KEEP_OLD
An item with the same name or ID as an existing item will be skipped.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LibraryConflictResolution
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LibraryConflictResolution[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KEEP_NEW
public static final LibraryConflictResolution KEEP_NEW
An item with the same name or ID as an existing item will overwrite the existing item. Note that the value to be sent through SOAP should beKeepNew
(case sensitive).
-
KEEP_BOTH
public static final LibraryConflictResolution KEEP_BOTH
An item with the same name or ID as an existing item will be renamed/get a new ID. Note that the value to be sent through SOAP should beKeepBoth
(case sensitive).
-
KEEP_OLD
public static final LibraryConflictResolution KEEP_OLD
An item with the same name or ID as an existing item will be skipped. Note that the value to be sent through SOAP should beKeepOld
(case sensitive).
-
-
Method Detail
-
values
public static LibraryConflictResolution[] 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 (LibraryConflictResolution c : LibraryConflictResolution.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LibraryConflictResolution 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
-
-