de.matthias_burbach.flux
Interface ModelBuilder

All Known Implementing Classes:
ChameleonModelBuilder, XmiModelBuilder

public interface ModelBuilder

Builds the internal representation of the UML model from the model file that was exported from the graphical tool of choice.

Generator plug-ins only see the internal representation of the model. That way different source formats from different graphical tools can be supported and generators don't have to mess around with overly complex or cumbersome model representations like XMI UML, for example. Model is an interface to allow for customization of what type of information the model built by a specific model builder can hold.

Is a plug-in interface. The implementation to be used must be configured in the flux-config.xml file.

Author:
Matthias Burbach

Method Summary
 Model build(java.lang.String sourceUrl)
          Builds the UML model from the file specified by sourceUrl.
 

Method Detail

build

public Model build(java.lang.String sourceUrl)
            throws java.lang.Exception
Builds the UML model from the file specified by sourceUrl.

Parameters:
sourceUrl - the location of the file to build from
Returns:
the model built
Throws:
java.lang.Exception - if anything goes wrong unexpectedly.