Enum Context.Ancestors
- java.lang.Object
-
- java.lang.Enum<Context.Ancestors>
-
- org.jadice.util.swing.action.context.Context.Ancestors
-
- All Implemented Interfaces:
Serializable
,Comparable<Context.Ancestors>
- Enclosing class:
- Context
public static enum Context.Ancestors extends Enum<Context.Ancestors>
Enum used to determine whether the aggregated view includes elements of ancestor (parent, grand-parent etc.) contexts.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL
Elements from all ancestors are included.NONE
No elements from ancestor contexts are included.PARENT
Elements from the direct parent context are included.PARENT_WITH_AGGREGATION
Elements from the direct parent context are included.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Context.Ancestors
valueOf(String name)
Returns the enum constant of this type with the specified name.static Context.Ancestors[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Context.Ancestors NONE
No elements from ancestor contexts are included.
-
ALL
public static final Context.Ancestors ALL
Elements from all ancestors are included. This doesn't however, encompass elements from ancestor's child contexts (e.g. siblings).
-
PARENT
public static final Context.Ancestors PARENT
Elements from the direct parent context are included. This doesn't however, encompass elements from the parent's child contexts (e.g. siblings).
-
PARENT_WITH_AGGREGATION
public static final Context.Ancestors PARENT_WITH_AGGREGATION
Elements from the direct parent context are included. If the parent has some form of aggregation, those ancestors or descendants (e.g. siblings, nephews) are included as well.
-
-
Method Detail
-
values
public static Context.Ancestors[] 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 (Context.Ancestors c : Context.Ancestors.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Context.Ancestors 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
-
-