站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

CookieMessage (XML Tools API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.xml/1 1.14

org.netbeans.api.xml.cookies
Class CookieMessage

java.lang.Object
  extended by org.netbeans.api.xml.cookies.CookieMessage

public final class CookieMessage
extends Object

Extensible and immutable CookieObserver message. Look at particular cookie what detail subclasses it supports.

Since:
0.8

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

INFORMATIONAL_LEVEL

public static final int INFORMATIONAL_LEVEL
Receive a localized message not tied with the processing problems.

See Also:
Constant Field Values

WARNING_LEVEL

public static final int WARNING_LEVEL
Receive notification of a warning.

See Also:
Constant Field Values

ERROR_LEVEL

public static final int ERROR_LEVEL
Receive notification of a recoverable error.

See Also:
Constant Field Values

FATAL_ERROR_LEVEL

public static final int FATAL_ERROR_LEVEL
Receive notification of a non-recoverable error.

See Also:
Constant Field Values
Constructor Detail

CookieMessage

public CookieMessage(String message)
Create new informational level message.

Parameters:
message - Localized message.

CookieMessage

public CookieMessage(String message,
                     int level)
Create new message.

Parameters:
message - Localized message.
level - Message level.

CookieMessage

public CookieMessage(String message,
                     Object detail)
Create new informational level message with structured detail.

Parameters:
message - Localized message.
detail - Structured detail attached to the message.

CookieMessage

public CookieMessage(String message,
                     int level,
                     Object detail)
Create new message with structured detail.

Parameters:
message - Localized message.
level - Message level.
detail - Structured detail attached to the message.

CookieMessage

public CookieMessage(String message,
                     int level,
                     Lookup details)
Create new message with structured detail.

Parameters:
message - Localized message.
level - Message level.
details - Lookup holding structured details.
Method Detail

getMessage

public String getMessage()
Returns:
Localized message.

getLevel

public final int getLevel()
Returns:
Message level.

getDetail

public Object getDetail(Class klass)
Query for structured detail attached to the message.

Parameters:
klass - Requested detail subclass.
Returns:
Instance of requested structured detail or null.

getDetails

public Lookup getDetails()
Query for structured details attached to the message.

Returns:
Lookup of attached structured details.

org.netbeans.api.xml/1 1.14

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.