1 package jp.sourceforge.stigmata.event;
7 import java.util.HashMap;
8 import java.util.Iterator;
13 * @author Haruaki Tamada
16 public class WarningMessages{
17 private OperationType type;
18 private Map<Exception, String> messages = new HashMap<Exception, String>();
20 public WarningMessages(OperationType type){
24 public void addMessage(Exception e, String string){
25 messages.put(e, string);
28 public Iterator<Exception> exceptions(){
29 return messages.keySet().iterator();
32 public String getString(Exception e){
33 return messages.get(e);
36 public OperationType getType(){
40 public void setType(OperationType type){
44 public int getWarningCount(){
45 return messages.size();