Enum Filter.Result

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Filter.Result>
    Enclosing interface:
    Filter

    public static enum Filter.Result
    extends java.lang.Enum<Filter.Result>
    The result that can returned from a filter method call.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ACCEPT
      The event will be processed without further filtering based on the log Level.
      DENY
      The event should not be processed.
      NEUTRAL
      No decision could be made, further filtering should occur.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Result()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Filter.Result toResult​(java.lang.String name)
      Returns the Result for the given string.
      static Filter.Result toResult​(java.lang.String name, Filter.Result defaultResult)
      Returns the Result for the given string.
      static Filter.Result valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Filter.Result[] 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

      • ACCEPT

        public static final Filter.Result ACCEPT
        The event will be processed without further filtering based on the log Level.
      • NEUTRAL

        public static final Filter.Result NEUTRAL
        No decision could be made, further filtering should occur.
      • DENY

        public static final Filter.Result DENY
        The event should not be processed.
    • Constructor Detail

      • Result

        private Result()
    • Method Detail

      • values

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

        public static Filter.Result valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • toResult

        public static Filter.Result toResult​(java.lang.String name)
        Returns the Result for the given string.
        Parameters:
        name - The Result enum name, case-insensitive. If null, returns, null
        Returns:
        a Result enum value or null if name is null
      • toResult

        public static Filter.Result toResult​(java.lang.String name,
                                             Filter.Result defaultResult)
        Returns the Result for the given string.
        Parameters:
        name - The Result enum name, case-insensitive. If null, returns, defaultResult
        defaultResult - the Result to return if name is null
        Returns:
        a Result enum value or null if name is null