Enum PropertyInheritMode

    • 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 name
        NullPointerException - if the argument is null