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

java.lang.Object
  extended bycom.cc.framework.ui.model.imp.StrutsMessageDataModelImp
All Implemented Interfaces:
DataModel, MessageDataModel

public class StrutsMessageDataModelImp
extends java.lang.Object
implements MessageDataModel

Wrapper class for struts messages

Since:
1.0
Version:
$Revision: 1.1 $
Author:
Harald Schulz

Nested Class Summary
private static class StrutsMessageDataModelImp.StrutsMessage
          Inner class
 
Field Summary
private  Message[] messages
          Collection with all Messages
 
Constructor Summary
StrutsMessageDataModelImp()
          Constructor
 
Method Summary
 Message[] getMessages()
          Returns a List with all Messages
 void load(Severity severity, javax.servlet.jsp.PageContext pageContext)
          Loads the Massages
 int size()
          returns the Number of Messages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messages

private Message[] messages
Collection with all Messages

Constructor Detail

StrutsMessageDataModelImp

public StrutsMessageDataModelImp()
Constructor

Method Detail

load

public void load(Severity severity,
                 javax.servlet.jsp.PageContext pageContext)
          throws javax.servlet.jsp.JspException
Loads the Massages

Parameters:
severity - Severity
pageContext - PageContext
Throws:
javax.servlet.jsp.JspException - Wird im Falle eines Fehlers geworfen

getMessages

public Message[] getMessages()
Description copied from interface: MessageDataModel
Returns a List with all Messages

Specified by:
getMessages in interface MessageDataModel
Returns:
Message
See Also:
MessageDataModel.getMessages()

size

public int size()
Description copied from interface: MessageDataModel
returns the Number of Messages

Specified by:
size in interface MessageDataModel
Returns:
integer
See Also:
MessageDataModel.size()


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