Enum Class Context.Ancestors
- All Implemented Interfaces:
Serializable
,Comparable<Context.Ancestors>
,Constable
- Enclosing class:
Context
Enum used to determine whether the aggregated view includes elements of ancestor (parent,
grand-parent etc.) contexts.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionElements from all ancestors are included.No elements from ancestor contexts are included.Elements from the direct parent context are included.Elements from the direct parent context are included. -
Method Summary
Modifier and TypeMethodDescriptionstatic Context.Ancestors
Returns the enum constant of this class with the specified name.static Context.Ancestors[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No elements from ancestor contexts are included. -
ALL
Elements from all ancestors are included. This doesn't however, encompass elements from ancestor's child contexts (e.g. siblings). -
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
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 Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-