|
org.netbeans.api.xml/1 1.14 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.xml.cookies.CookieMessage
public final class CookieMessage
Extensible and immutable CookieObserver
message.
Look at particular cookie what detail subclasses it supports.
Field Summary | |
---|---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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 CookieMessage(String message, int level, Lookup details)
message
- Localized message.level
- Message level.details
- Lookup holding structured details.Method Detail |
---|
public String getMessage()
public final int getLevel()
public Object getDetail(Class klass)
klass
- Requested detail subclass.
null
.public Lookup getDetails()
|
org.netbeans.api.xml/1 1.14 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |