Package jetbrains.mps.messages
Enum MessageKind
- java.lang.Object
 - 
- java.lang.Enum<MessageKind>
 - 
- jetbrains.mps.messages.MessageKind
 
 
 
- 
- All Implemented Interfaces:
 Serializable,Comparable<MessageKind>
public enum MessageKind extends Enum<MessageKind>
Types of messages reported throughIMessageHandler. 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, useLogger. 
- 
- 
Enum Constant Summary
Enum Constants Enum Constant Description ERRORINFORMATIONWARNING 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessageKindfromPriority(org.apache.log4j.Priority level)booleanis(IMessage msg)booleanisSameOrGreaterSeverityThan(MessageKind kind)static MessageKindvalueOf(String name)Returns the enum constant of this type with the specified name.static MessageKind[]values()Returns an array containing the constants of this enum type, in the order they are declared. 
 - 
 
- 
- 
Enum Constant Detail
- 
INFORMATION
public static final MessageKind INFORMATION
 
- 
WARNING
public static final MessageKind WARNING
 
- 
ERROR
public static final MessageKind ERROR
 
 - 
 
- 
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 nameNullPointerException- if the argument is null
 
- 
isSameOrGreaterSeverityThan
public boolean isSameOrGreaterSeverityThan(MessageKind kind)
- Returns:
 trueif 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- nevernull- Returns:
 trueif message's kind is exactly the one identified bythis
 
- 
fromPriority
@NotNull public static MessageKind fromPriority(org.apache.log4j.Priority level)
 
 - 
 
 -