View Javadoc

1   /*
2    * Created by ratt at Mar 28, 2007 on 5:47:57 AM
3    */
4   package net.sf.quarrel.uml;
5   
6   import net.sf.quarrel.file.FileElement;
7   
8   /***
9    * Interface for the class which builds an instance of the uml.Model class.
10   * No assumptions are made about the implementation of the interface.
11   */
12  public interface ModelBuilder {
13  
14      /***
15       * Returns the assempbled model.
16       *
17       * @return the Model object populated using the data provided using the
18       *         method().
19       * @see #add(net.sf.quarrel.file.FileElement)
20       */
21      public Model getModel();
22  
23      /***
24       * Add an object parsed from the InputStream to the ModelBuilder.  A new
25       * object will be added to underlying model to represent this object.
26       *
27       * @param element the object to be added to the model.
28       */
29      public void add(FileElement element);
30  
31  }