Transformation.java
package org.andromda.core.configuration;
import java.io.Serializable;
/**
* Stores the information about a transformation. Transformations are applied to
* model(s) before actual model processing occurs.
*
* @author Chad Brandon
*/
public class Transformation
implements Serializable
{
private static final long serialVersionUID = 34L;
/**
* The URL location of the transformation.
*/
private String uri;
/**
* Sets the URL of the transformation.
*
* @param uri the URL to the transformation.
*/
public void setUri(final String uri)
{
this.uri = uri;
}
/**
* The URL of the model.
*
* @return Returns the uri.
*/
public String getUri()
{
return uri;
}
/**
* Stores the optional output location.
*/
private String outputLocation;
/**
* Sets the location to which the result of this transformation should be
* written. This is optional, if this is unspecified then the result is not
* written but just passed in memory to the processor.
*
* @param outputLocation the location of the output to be written.
*/
public void setOutputLocation(final String outputLocation)
{
this.outputLocation = outputLocation;
}
/**
* Gets the location to which the output of the transformation result will
* be written.
*
* @return the output location.
*/
public String getOutputLocation()
{
return this.outputLocation;
}
}