Enum ContextScope

    • Enum Constant Detail

      • OBJECT_SCOPE

        public static final ContextScope OBJECT_SCOPE
        Enum constant for expressing interest in events concerning the object named by the target.
      • LEVEL_SCOPE

        public static final ContextScope LEVEL_SCOPE
        Enum constant for expressing interest in events concerning objects in the context named by the target, excluding the context named by the target.
      • LEVEL_OBJECT_SCOPE

        public static final ContextScope LEVEL_OBJECT_SCOPE
        Enum constant for expressing interest in events concerning objects in the context named by the target, including the context named by the target.
      • SUBTREE_SCOPE

        public static final ContextScope SUBTREE_SCOPE
        Enum constant for expressing interest in events concerning objects in the subtree of the object named by the target, including the object named by the target.
    • Method Detail

      • values

        public static ContextScope[] 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 (ContextScope c : ContextScope.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ContextScope 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