Enum AcceptRejectWarn

    • Enum Constant Detail

      • ACCEPT

        public static final AcceptRejectWarn ACCEPT
        Indicates that elements meeting the associated criteria should be accepted.
      • REJECT

        public static final AcceptRejectWarn REJECT
        Indicates that elements meeting the associated criteria should be rejected.
      • WARN

        public static final AcceptRejectWarn WARN
        Indicates that a warning should be logged if an element meets the associated criteria. Whether it will be accepted or rejected after the log warning is dependent on the scenario in which this enumeration is used.
    • Method Detail

      • values

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

        public static AcceptRejectWarn 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
      • toString

        public String toString()
        Retrieves the human-readable name for this accept/reject/warn policy.
        Overrides:
        toString in class Enum<AcceptRejectWarn>
        Returns:
        The human-readable name for this accept/reject/warn policy.