Enum MessageKind

  • All Implemented Interfaces:
    Serializable, Comparable<MessageKind>

    public enum MessageKind
    extends Enum<MessageKind>
    Types of messages reported through IMessageHandler. Note, this is not a replacement for logging facilities. Messages are intended for end-user and thus levels other than 'severe issue', 'worth mentioning' and 'if you are curious' do not make sense here. If you need trace/debug levels, use Logger.
    • Method Detail

      • values

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

        public static MessageKind 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
      • isSameOrGreaterSeverityThan

        public boolean isSameOrGreaterSeverityThan​(MessageKind kind)
        Returns:
        true if this enumeration (LHS) value represents a message of at least the same severity than the one supplied (RHS).
      • is

        public boolean is​(IMessage msg)
        Parameters:
        msg - never null
        Returns:
        true if message's kind is exactly the one identified by this
      • fromPriority

        @NotNull
        public static MessageKind fromPriority​(org.apache.log4j.Priority level)