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