org.andromda.core
Class AndroMDA

java.lang.Object
  extended by org.andromda.core.AndroMDA

public class AndroMDA
extends java.lang.Object

The main entry point to the framework. Handles the processing of models. Facilitates Model Driven Architecture by enabling the generation of source code, configuration files, and other such artifacts from a single or multiple models.

Author:
Chad Brandon
See Also:
Engine

Method Summary
 void initialize(Configuration configuration)
          Initializes AndroMDA without running the engine.
 void initialize(java.io.InputStream configurationStream)
          Initializes AndroMDA without running the engine.
 void initialize(java.lang.String configuration)
          Initializes AndroMDA without running the engine.
 void initialize(java.net.URL configurationUri)
          Initializes AndroMDA without running the engine.
static AndroMDA newInstance()
          Gets a new instance of AndroMDA.
 ModelValidationMessage[] run(Configuration configuration)
          Runs AndroMDA with the given configuration.
 void run(java.io.InputStream configurationStream)
          Runs AndroMDA with the given configuration.
 void run(java.lang.String configuration)
          Runs AndroMDA with the given configuration.
 void run(java.net.URL configurationUri)
          Runs AndroMDA with the given configuration.
 void shutdown()
          Shuts down AndroMDA.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static AndroMDA newInstance()
Gets a new instance of AndroMDA.

Returns:
the new instance of AndroMDA.

run

public void run(java.net.URL configurationUri)
Runs AndroMDA with the given configuration.

Parameters:
configurationUri - the URI to the configuration file that configures AndroMDA.

run

public void run(java.io.InputStream configurationStream)
Runs AndroMDA with the given configuration.

Parameters:
configurationStream - the InputStream that contains the configuration contents for configuring AndroMDA.

run

public void run(java.lang.String configuration)
Runs AndroMDA with the given configuration.

Parameters:
configuration - the String that contains the configuration contents for configuring AndroMDA.

initialize

public void initialize(Configuration configuration)
Initializes AndroMDA without running the engine.

Parameters:
configuration - the configuration from which to initialize AndroMDA

initialize

public void initialize(java.io.InputStream configurationStream)
Initializes AndroMDA without running the engine.

Parameters:
configurationStream - the InputStream that contains the configuration contents for configuring AndroMDA.

initialize

public void initialize(java.lang.String configuration)
Initializes AndroMDA without running the engine.

Parameters:
configuration - the String that contains the configuration contents for configuring AndroMDA.

initialize

public void initialize(java.net.URL configurationUri)
Initializes AndroMDA without running the engine.

Parameters:
configurationUri - the URI to the configuration file that configures AndroMDA.

run

public ModelValidationMessage[] run(Configuration configuration)
Runs AndroMDA with the given configuration. Determines whether or not AndroMDA should be run in client/server mode (if the client can contact the AndroMDA server), or just stand-alone mode if the server can NOT be contacted.

Parameters:
configuration - the configuration instance that configures AndroMDA.
Returns:
an array of model validation messages (if there have been any collected during AndroMDA execution).

shutdown

public void shutdown()
Shuts down AndroMDA.



Copyright © 2003-2008 AndroMDA.org. All Rights Reserved.