Enum Context.Ancestors

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