View Javadoc
1   package org.andromda.core.configuration;
2   
3   import java.io.Serializable;
4   
5   /**
6    * Stores the information about a transformation. Transformations are applied to
7    * model(s) before actual model processing occurs.
8    *
9    * @author Chad Brandon
10   */
11  public class Transformation
12      implements Serializable
13  {
14      private static final long serialVersionUID = 34L;
15  
16      /**
17       * The URL location of the transformation.
18       */
19      private String uri;
20  
21      /**
22       * Sets the URL of the transformation.
23       *
24       * @param uri the URL to the transformation.
25       */
26      public void setUri(final String uri)
27      {
28          this.uri = uri;
29      }
30  
31      /**
32       * The URL of the model.
33       *
34       * @return Returns the uri.
35       */
36      public String getUri()
37      {
38          return uri;
39      }
40  
41      /**
42       * Stores the optional output location.
43       */
44      private String outputLocation;
45  
46      /**
47       * Sets the location to which the result of this transformation should be
48       * written. This is optional, if this is unspecified then the result is not
49       * written but just passed in memory to the processor.
50       *
51       * @param outputLocation the location of the output to be written.
52       */
53      public void setOutputLocation(final String outputLocation)
54      {
55          this.outputLocation = outputLocation;
56      }
57  
58      /**
59       * Gets the location to which the output of the transformation result will
60       * be written.
61       *
62       * @return the output location.
63       */
64      public String getOutputLocation()
65      {
66          return this.outputLocation;
67      }
68  }