View Javadoc

1   package org.andromda.core.transformation;
2   
3   import java.io.InputStream;
4   
5   import org.andromda.core.configuration.Transformation;
6   
7   
8   /***
9    * Is able to apply transformations to a given model (such as an XMI file).
10   *
11   * @author Chad Brandon
12   */
13  public interface Transformer
14  {
15      /***
16       * Transforms the given <code>model</code> with the given
17       * <code>transformations</code>.  Applies the transformations
18       * in the order that they are found.
19       *
20       * @param the URI to the model be transform.
21       * @param transformations the files to perform the transformation, in the order
22       *        they should be applied.
23       * @return the transformed result as an input stream.
24       */
25      public InputStream transform(
26          String modelUri,
27          Transformation[] transformations);
28  }