Package lumis.portal.propertybag
Enum PropertyInheritMode
- java.lang.Object
-
- java.lang.Enum<PropertyInheritMode>
-
- lumis.portal.propertybag.PropertyInheritMode
-
- All Implemented Interfaces:
Serializable
,Comparable<PropertyInheritMode>
@StableMinor(version="14.2", sinceVersion="7.0") public enum PropertyInheritMode extends Enum<PropertyInheritMode>
Indicates the mode the values of a property is inherited to a property bag from its parent property bag.- Since:
- 7.0.0
- Version:
- $Revision: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertyInheritMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static PropertyInheritMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IGNORE
public static final PropertyInheritMode IGNORE
Ignore the values that would be inherited from the parent property bag. So the property actually will not inherit any value.Note that parent values are only ignored if a value is set locally. Otherwise the parent value is used directly.
Example: if property has local values [L1, L2, L3] and parent has values [P1, P2, P3], then the property values will be [L1, L2, L3].
- Since:
- 7.0.0
-
PREPEND
public static final PropertyInheritMode PREPEND
Prepend the values inherited from the parent property bag. So the property values will begin with the values from its parent, followed by the values specified locally.Example: if property has local values [L1, L2, L3] and parent has values [P1, P2, P3], then the property values will be [P1, P2, P3, L1, L2, L3].
- Since:
- 7.0.0
-
APPEND
public static final PropertyInheritMode APPEND
Append the values inherited from the parent property bag. So the property values will begin with the values specified locally followed by the values from its parent.Example: if property has local values [L1, L2, L3] and parent has values [P1, P2, P3], then the property values will be [L1, L2, L3, P1, P2, P3].
- Since:
- 7.0.0
-
-
Method Detail
-
values
public static PropertyInheritMode[] 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 (PropertyInheritMode c : PropertyInheritMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PropertyInheritMode 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
-
-