com.cc.framework.ui.model.imp
Class StrutsMessageDataModelImp.StrutsMessage

java.lang.Object
  extended bycom.cc.framework.ui.model.imp.StrutsMessageDataModelImp.StrutsMessage
All Implemented Interfaces:
java.lang.Comparable, Message
Enclosing class:
StrutsMessageDataModelImp

private static class StrutsMessageDataModelImp.StrutsMessage
extends java.lang.Object
implements Message, java.lang.Comparable

Inner class


Field Summary
private  java.lang.String key
          Key
private  java.lang.String message
          Message
private  Severity severity
          Severity
 
Constructor Summary
StrutsMessageDataModelImp.StrutsMessage(Severity severity, java.lang.String key, java.lang.String message)
          Constructor
 
Method Summary
 int compareTo(java.lang.Object o)
           
 java.lang.String getKey()
          Returns the unique message key
 java.lang.String getMessage()
          Returns a language independent message
 java.lang.String getMessage(java.lang.String locale)
          Returns a language dependent message
 Severity getSeverity()
          Returns the severity for the message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

severity

private Severity severity
Severity


key

private java.lang.String key
Key


message

private java.lang.String message
Message

Constructor Detail

StrutsMessageDataModelImp.StrutsMessage

public StrutsMessageDataModelImp.StrutsMessage(Severity severity,
                                               java.lang.String key,
                                               java.lang.String message)
Constructor

Parameters:
severity - Severity
key - MessageKey
message - Message
Method Detail

getKey

public java.lang.String getKey()
Description copied from interface: Message
Returns the unique message key

Specified by:
getKey in interface Message
Returns:
String
See Also:
Message.getKey()

getSeverity

public Severity getSeverity()
Description copied from interface: Message
Returns the severity for the message

Specified by:
getSeverity in interface Message
Returns:
Severity
See Also:
Message.getSeverity()

getMessage

public java.lang.String getMessage(java.lang.String locale)
Description copied from interface: Message
Returns a language dependent message

Specified by:
getMessage in interface Message
Parameters:
locale - Local null == default language
Returns:
String
See Also:
Message.getMessage(String)

getMessage

public java.lang.String getMessage()
Description copied from interface: Message
Returns a language independent message

Specified by:
getMessage in interface Message
Returns:
String
See Also:
Message.getMessage()

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable
See Also:
Comparable.compareTo(java.lang.Object)


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.