Package org.xwiki.xar
Enum XarEntryType.UpgradeType
- java.lang.Object
-
- java.lang.Enum<XarEntryType.UpgradeType>
-
- org.xwiki.xar.XarEntryType.UpgradeType
-
- All Implemented Interfaces:
Serializable
,Comparable<XarEntryType.UpgradeType>
- Enclosing interface:
- XarEntryType
public static enum XarEntryType.UpgradeType extends Enum<XarEntryType.UpgradeType>
The upgrade behavior.- Version:
- $Id: 7227ff2377704ea4ab9d02f75fa08e2dea1883d5 $
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OVERWRITE
Always overwrite the existing document.SKIP
If what already exist is non standard don't touch it.SKIP_ALLWAYS
If anything already exist don't touch it.THREEWAYS
Apply a 3 ways merge (the default).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XarEntryType.UpgradeType
valueOf(String name)
Returns the enum constant of this type with the specified name.static XarEntryType.UpgradeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
THREEWAYS
public static final XarEntryType.UpgradeType THREEWAYS
Apply a 3 ways merge (the default).
-
OVERWRITE
public static final XarEntryType.UpgradeType OVERWRITE
Always overwrite the existing document.
-
SKIP
public static final XarEntryType.UpgradeType SKIP
If what already exist is non standard don't touch it.
-
SKIP_ALLWAYS
public static final XarEntryType.UpgradeType SKIP_ALLWAYS
If anything already exist don't touch it.
-
-
Method Detail
-
values
public static XarEntryType.UpgradeType[] 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 (XarEntryType.UpgradeType c : XarEntryType.UpgradeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XarEntryType.UpgradeType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-