1 package jp.sourceforge.stigmata.event;
3 import java.util.HashMap;
4 import java.util.Iterator;
9 * @author Haruaki Tamada
11 public class WarningMessages{
12 private OperationType type;
13 private Map<Exception, String> messages = new HashMap<Exception, String>();
15 public WarningMessages(OperationType type){
19 public void addMessage(Exception e, String string){
20 messages.put(e, string);
23 public Iterator<Exception> exceptions(){
24 return messages.keySet().iterator();
27 public String getString(Exception e){
28 return messages.get(e);
31 public OperationType getType(){
35 public void setType(OperationType type){
39 public int getWarningCount(){
40 return messages.size();