Package com.composum.sling.core.mapping
Enum MappingRules.ChangeRule
- java.lang.Object
-
- java.lang.Enum<MappingRules.ChangeRule>
-
- com.composum.sling.core.mapping.MappingRules.ChangeRule
-
- All Implemented Interfaces:
Serializable
,Comparable<MappingRules.ChangeRule>
- Enclosing class:
- MappingRules
public static enum MappingRules.ChangeRule extends Enum<MappingRules.ChangeRule>
the change policy values - skip: for packages - skip one aspect (e.g. the ACLs) - extend: add new values only, don't change existing values even if different in th external object - merge: change all values using the external form and let the values not present external unchanged - update: change all values and remove all values and nodes which are not present in the external object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MappingRules.ChangeRule
valueOf(String name)
Returns the enum constant of this type with the specified name.static MappingRules.ChangeRule[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
skip
public static final MappingRules.ChangeRule skip
-
extend
public static final MappingRules.ChangeRule extend
-
merge
public static final MappingRules.ChangeRule merge
-
update
public static final MappingRules.ChangeRule update
-
-
Method Detail
-
values
public static MappingRules.ChangeRule[] 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 (MappingRules.ChangeRule c : MappingRules.ChangeRule.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MappingRules.ChangeRule 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
-
-