| java.lang.Object uk.org.ponder.messageutil.TargettedMessage
TargettedMessage | public class TargettedMessage implements Serializable(Code) | | Represents a single message, for presentation to the user, targetted at a
particular field or part of an interface. The message has not yet been
resolved onto its localised representation (generally to be performed via
MessageLocator , and has an associated severity level.
author: Antranig Basman (antranig@caret.cam.ac.uk) |
Constructor Summary | |
public | TargettedMessage() | public | TargettedMessage(String messagecode, String targetid) | public | TargettedMessage(String messagecode, Object[] args, String targetid) | public | TargettedMessage(String messagecode) | public | TargettedMessage(String messagecode, Exception exception) | public | TargettedMessage(String messagecode, Exception exception, String targetid) | public | TargettedMessage(String messagecode, Object[] args) | public | TargettedMessage(String messagecode, Object[] args, int severity) | public | TargettedMessage(String[] messagecodes, Object[] args, String targetid) | public | TargettedMessage(String[] messagecodes, Object[] args, String targetid, int severity) The fullest constructor for TargettedMessage.
Parameters: messagecodes - Message codes to be used for resolution, in descendingorder of priority. |
SEVERITY_ERROR | final public static int SEVERITY_ERROR(Code) | | |
SEVERITY_INFO | final public static int SEVERITY_INFO(Code) | | |
messagecodes | public String[] messagecodes(Code) | | A list of possible message codes, in descending order of specificity. This
is the same semantics as Spring's "MessageSourceResolvable" system.
|
severity | public int severity(Code) | | |
TargettedMessage | public TargettedMessage()(Code) | | |
TargettedMessage | public TargettedMessage(String messagecode, String targetid)(Code) | | Construct a simple targetted message
Parameters: messagecode - The message key for resolving the message text. Parameters: targetid - The target field or path of the message, if null will be substituted with TargettedMessage.TARGET_NONE. |
TargettedMessage | public TargettedMessage(String messagecode)(Code) | | |
TargettedMessage | public TargettedMessage(String messagecode, Object[] args, int severity)(Code) | | |
TargettedMessage | public TargettedMessage(String[] messagecodes, Object[] args, String targetid, int severity)(Code) | | The fullest constructor for TargettedMessage.
Parameters: messagecodes - Message codes to be used for resolution, in descendingorder of priority. See MessageLocator Parameters: args - Any arguments required for substitution in the resolved message. Parameters: targetid - The ID or path that the message is to be targetted at. Parameters: severity - The severity of the message, either TargettedMessage.SEVERITY_INFO orTargettedMessage.SEVERITY_ERROR |
updateMessageCode | public void updateMessageCode(String messagecode)(Code) | | |
|
|