Enum MappingStrengthType
- java.lang.Object
-
- java.lang.Enum<MappingStrengthType>
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.MappingStrengthType
-
- All Implemented Interfaces:
Serializable
,Comparable<MappingStrengthType>
public enum MappingStrengthType extends Enum<MappingStrengthType>
Strength of the mapping defines how aggressively will the mapping be applied. The strongest mappings are applied all the time (regardless of the consequences) and the weakest mappings are applied only if nothing else can be applied.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MappingStrengthType
fromValue(String v)
String
value()
static MappingStrengthType
valueOf(String name)
Returns the enum constant of this type with the specified name.static MappingStrengthType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRONG
public static final MappingStrengthType STRONG
Always applied, regardless of context. Strong mappings enforce particular values.
-
NORMAL
public static final MappingStrengthType NORMAL
Apply the mapping unless there is a more specific change.
-
WEAK
public static final MappingStrengthType WEAK
Apply the mapping only if there is a no other change on target property and the target property does not have any value. This mapping strength is use to set initial (default) values for attributes and properties.
-
-
Method Detail
-
values
public static MappingStrengthType[] 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 (MappingStrengthType c : MappingStrengthType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MappingStrengthType 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
-
value
public String value()
-
fromValue
public static MappingStrengthType fromValue(String v)
-
-