View Javadoc

1   package org.riverock.dbrevision.manager.patch;
2   
3   import java.util.List;
4   import java.util.ArrayList;
5   
6   /**
7    * User: SergeMaslyukov
8    * Date: 05.08.2007
9    * Time: 14:51:32
10   */
11  public class PatchMessages {
12  
13      private List<PatchMessage> messages = new ArrayList<PatchMessage>();
14  
15      public void addMessage(String message) {
16          getMessages().add( new PatchMessage(message) );
17      }
18  
19      public void addMessage(PatchMessage message) {
20          getMessages().add( message );
21      }
22  
23      public List<PatchMessage> getMessages() {
24          if (messages==null) {
25              messages = new ArrayList<PatchMessage>();
26          }
27          return messages;
28      }
29  }