com.vaadin.terminal
Class CompositeErrorMessage

java.lang.Object
  extended by com.vaadin.terminal.AbstractErrorMessage
      extended by com.vaadin.terminal.CompositeErrorMessage
All Implemented Interfaces:
ErrorMessage, Serializable

public class CompositeErrorMessage
extends AbstractErrorMessage

Class for combining multiple error messages together.

Since:
3.0
Version:
7.0.0.alpha3
Author:
Vaadin Ltd
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.vaadin.terminal.AbstractErrorMessage
AbstractErrorMessage.ContentMode
 
Nested classes/interfaces inherited from interface com.vaadin.terminal.ErrorMessage
ErrorMessage.ErrorLevel
 
Field Summary
 
Fields inherited from interface com.vaadin.terminal.ErrorMessage
CRITICAL, ERROR, INFORMATION, SYSTEMERROR, WARNING
 
Constructor Summary
CompositeErrorMessage(Collection<? extends ErrorMessage> errorMessages)
          Constructor for CompositeErrorMessage.
CompositeErrorMessage(ErrorMessage[] errorMessages)
          Constructor for CompositeErrorMessage.
 
Method Summary
 Iterator<ErrorMessage> iterator()
          Gets Error Iterator.
 String toString()
          Returns a comma separated list of the error messages.
 
Methods inherited from class com.vaadin.terminal.AbstractErrorMessage
addCause, getCauses, getErrorLevel, getErrorMessageForException, getFormattedHtmlMessage, getMessage, getMode, setErrorLevel, setMessage, setMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositeErrorMessage

public CompositeErrorMessage(ErrorMessage[] errorMessages)
Constructor for CompositeErrorMessage.

Parameters:
errorMessages - the Array of error messages that are listed togeter. Nulls are ignored, but at least one message is required.

CompositeErrorMessage

public CompositeErrorMessage(Collection<? extends ErrorMessage> errorMessages)
Constructor for CompositeErrorMessage.

Parameters:
errorMessages - the Collection of error messages that are listed together. At least one message is required.
Method Detail

iterator

public Iterator<ErrorMessage> iterator()
Gets Error Iterator.

Returns:
the error iterator.

toString

public String toString()
Returns a comma separated list of the error messages.

Overrides:
toString in class AbstractErrorMessage
Returns:
String, comma separated list of error messages.


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.