lumis.portal.propertybag
Enum PropertyInheritMode

Package class diagram package PropertyInheritMode
java.lang.Object
  extended by java.lang.Enum<PropertyInheritMode>
      extended by lumis.portal.propertybag.PropertyInheritMode
All Implemented Interfaces:
Serializable, Comparable<PropertyInheritMode>

@StableMinor(version="7.0",
             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

Enum Constant Summary
APPEND
          Append the values inherited from the parent property bag.
IGNORE
          Ignore the values that would be inherited from the parent property bag.
PREPEND
          Prepend the values inherited from the parent property bag.
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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


Lumisportal  7.0.0.121130 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.