Dashboard Builder Commons 6.1.0.CR1

org.jboss.dashboard.commons.message
Interface Message

All Known Implementing Classes:
AbstractMessage

public interface Message

A message.


Field Summary
static int ERROR
          Error message type.
static int INFO
          Informative message type.
static int WARNING
          Warning message type.
 
Method Summary
 Object[] getElements()
          The elements involved in the error (the error context).
 String getMessage(Locale l)
          A string representation of the error for the given locale.
 String getMessageCode()
          The error code.
 int getMessageType()
          Get the message type.
 boolean isEditable()
          Returns true if this message refers to an editable element
 void setElements(Object[] elements)
           
 void setMessageCode(String errorCode)
           
 

Field Detail

ERROR

static final int ERROR
Error message type.

See Also:
Constant Field Values

WARNING

static final int WARNING
Warning message type.

See Also:
Constant Field Values

INFO

static final int INFO
Informative message type.

See Also:
Constant Field Values
Method Detail

getElements

Object[] getElements()
The elements involved in the error (the error context).

Returns:
An array of Object instances.

setElements

void setElements(Object[] elements)

getMessageCode

String getMessageCode()
The error code.


setMessageCode

void setMessageCode(String errorCode)

getMessage

String getMessage(Locale l)
A string representation of the error for the given locale.


getMessageType

int getMessageType()
Get the message type.


isEditable

boolean isEditable()
Returns true if this message refers to an editable element


Dashboard Builder Commons 6.1.0.CR1

Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.