01: package org.andromda.core.configuration;
02:
03: import java.io.Serializable;
04:
05: /**
06: * Stores the information about a transformation. Transformations are applied to
07: * model(s) before actual model processing occurs.
08: *
09: * @author Chad Brandon
10: */
11: public class Transformation implements Serializable {
12: /**
13: * The URL location of the transformation.
14: */
15: private String uri;
16:
17: /**
18: * Sets the URL of the transformation.
19: *
20: * @param uri the URL to the transformation.
21: */
22: public void setUri(final String uri) {
23: this .uri = uri;
24: }
25:
26: /**
27: * The URL of the model.
28: *
29: * @return Returns the uri.
30: */
31: public String getUri() {
32: return uri;
33: }
34:
35: /**
36: * Stores the optional output location.
37: */
38: private String outputLocation;
39:
40: /**
41: * Sets the location to which the result of this transformation should be
42: * written. This is optional, if this is unspecified then the result is not
43: * written but just passed in memory to the processor.
44: *
45: * @param outputLocation the location of the output to be written.
46: */
47: public void setOutputLocation(final String outputLocation) {
48: this .outputLocation = outputLocation;
49: }
50:
51: /**
52: * Gets the location to which the output of the transformation result will
53: * be written.
54: *
55: * @return the output location.
56: */
57: public String getOutputLocation() {
58: return this.outputLocation;
59: }
60: }
|