public enum MessageType extends Enum<MessageType>
| Enum Constant and Description |
|---|
DEBUG
Data used when debugging; This is not usually needed by a user
|
ERROR
An error, required when something goes wrong
|
INFORMATION
Information that is not as important as regular output, but may be used by a normal user
|
REGULAR
Regular output; The equivalent of System.out.println
|
TRACE
Trace-level data that is rarely needed except in deep debugging
|
WARNING
A warning; Useful for users to know in case they must stop doing something
|
| Modifier and Type | Method and Description |
|---|---|
void |
filter()
Filters this message type
|
boolean |
isFiltered()
Checks to see if this message type is filtered
|
void |
unfilter()
Unfilters this message type
|
static MessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageType TRACE
public static final MessageType DEBUG
public static final MessageType INFORMATION
public static final MessageType REGULAR
public static final MessageType WARNING
public static final MessageType ERROR
public static MessageType[] values()
for (MessageType c : MessageType.values()) System.out.println(c);
public static MessageType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic boolean isFiltered()
public void filter()
public void unfilter()
Copyright © 2012 Massive Dynamics. All Rights Reserved.