Package org.incenp.obofoundry.sssom
Enum PropagationPolicy
- java.lang.Object
-
- java.lang.Enum<PropagationPolicy>
-
- org.incenp.obofoundry.sssom.PropagationPolicy
-
- All Implemented Interfaces:
Serializable,Comparable<PropagationPolicy>
public enum PropagationPolicy extends Enum<PropagationPolicy>
The policy that defines how to propagate values between the mapping set level and the level of individual mappings.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AlwaysReplaceAlways propagate the value from the source object to the destination objects, regardless of whether a destination object already has a value for the slot being propagated.DisabledNever propagate values between mapping set level and individual mappings.NeverReplaceIf any of the destination objects already has a value for the slot being propagated, do not propagate anything.ReplaceIfUnsetPropagate the value from the source object to the destination objects, only for objects that do not already have a value for the slot being propagated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropagationPolicyvalueOf(String name)Returns the enum constant of this type with the specified name.static PropagationPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AlwaysReplace
public static final PropagationPolicy AlwaysReplace
Always propagate the value from the source object to the destination objects, regardless of whether a destination object already has a value for the slot being propagated.
-
ReplaceIfUnset
public static final PropagationPolicy ReplaceIfUnset
Propagate the value from the source object to the destination objects, only for objects that do not already have a value for the slot being propagated.
-
NeverReplace
public static final PropagationPolicy NeverReplace
If any of the destination objects already has a value for the slot being propagated, do not propagate anything.
-
Disabled
public static final PropagationPolicy Disabled
Never propagate values between mapping set level and individual mappings.
-
-
Method Detail
-
values
public static PropagationPolicy[] 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 (PropagationPolicy c : PropagationPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PropagationPolicy 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
-
-