com.cc.framework.message
Class Messages

java.lang.Object
  extended bycom.cc.framework.message.Messages

public class Messages
extends java.lang.Object

Collection for Messages

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

Field Summary
private  java.util.Vector messages
          The buffer into which the messages are stored.
 
Constructor Summary
Messages()
          Constructor for Messages
 
Method Summary
 void addMessage(MessageResource message)
          Adds a new message to the collection
 Severity getSeverity()
          Returns the highest severity for the messages in this list.
 boolean isError()
          Checks if the list contains messages of severity "error"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messages

private java.util.Vector messages
The buffer into which the messages are stored.

Constructor Detail

Messages

public Messages()
Constructor for Messages

Method Detail

addMessage

public void addMessage(MessageResource message)
Adds a new message to the collection

Parameters:
message - the message resource.

getSeverity

public Severity getSeverity()
Returns the highest severity for the messages in this list.

Returns:
Severity

isError

public boolean isError()
Checks if the list contains messages of severity "error"

Returns:
boolean true if it is an Error


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