org.netbeans.api.xml.cookies
public final class CookieMessage extends Object
CookieObserver
message.
Look at particular cookie what detail subclasses it supports.Modifier and Type | Field and Description |
---|---|
static int |
ERROR_LEVEL
Receive notification of a recoverable error.
|
static int |
FATAL_ERROR_LEVEL
Receive notification of a non-recoverable error.
|
static int |
INFORMATIONAL_LEVEL
Receive a localized message not tied with the processing problems.
|
static int |
WARNING_LEVEL
Receive notification of a warning.
|
Constructor and Description |
---|
CookieMessage(String message)
Create new informational level message.
|
CookieMessage(String message,
int level)
Create new message.
|
CookieMessage(String message,
int level,
Lookup details)
Create new message with structured detail.
|
CookieMessage(String message,
int level,
Object detail)
Create new message with structured detail.
|
CookieMessage(String message,
Object detail)
Create new informational level message with structured detail.
|
Modifier and Type | Method and Description |
---|---|
Object |
getDetail(Class klass)
Query for structured detail attached to the message.
|
Lookup |
getDetails()
Query for structured details attached to the message.
|
int |
getLevel() |
String |
getMessage() |
public static final int INFORMATIONAL_LEVEL
public static final int WARNING_LEVEL
public static final int ERROR_LEVEL
public static final int FATAL_ERROR_LEVEL
public CookieMessage(String message)
message
- Localized message.public CookieMessage(String message, int level)
message
- Localized message.level
- Message level.public CookieMessage(String message, Object detail)
message
- Localized message.detail
- Structured detail attached to the message.public CookieMessage(String message, int level, Object detail)
message
- Localized message.level
- Message level.detail
- Structured detail attached to the message.public String getMessage()
public final int getLevel()
public Object getDetail(Class klass)
klass
- Requested detail subclass.null
.public Lookup getDetails()
Built on March 18 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.