org.andromda.translation.ocl.testsuite
Class TranslationTest

java.lang.Object
  extended by org.andromda.translation.ocl.testsuite.TranslationTest

public class TranslationTest
extends Object

Represents a TranslatorTest object loaded and executed by the ExpressionTranslatorTest object.

Author:
Chad Brandon

Constructor Summary
TranslationTest()
           
 
Method Summary
 void addExpression(ExpressionTest config)
          Adds an ExpressionTest to this TranslationTest.
 Map<String,ExpressionTest> getExpressionConfigs()
          Returns all the ExpressionTest objects in a Map keyed by the from element body.
 String getTranslation()
          Returns the name of the translator, for which this TranslationTest will be used to test.
 URL getUri()
          Gets the URI for the test which this TranslationTest was loaded from.
 void setTranslation(String translation)
          Sets the name of the translator for which this TranslationTest will be used to test.
protected  void setUri(URL uri)
          Sets the URI for the test which this TranslationTest was loaded from.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TranslationTest

public TranslationTest()
Method Detail

setTranslation

public void setTranslation(String translation)
Sets the name of the translator for which this TranslationTest will be used to test.

Parameters:
translation - the name the translation to test.

getTranslation

public String getTranslation()
Returns the name of the translator, for which this TranslationTest will be used to test.

Returns:
String

addExpression

public void addExpression(ExpressionTest config)
Adds an ExpressionTest to this TranslationTest.

Parameters:
config - a ExpressionTest instance.

getExpressionConfigs

public Map<String,ExpressionTest> getExpressionConfigs()
Returns all the ExpressionTest objects in a Map keyed by the from element body.

Returns:
Map

getUri

public URL getUri()
Gets the URI for the test which this TranslationTest was loaded from.

Returns:
Returns the uri.

setUri

protected void setUri(URL uri)
Sets the URI for the test which this TranslationTest was loaded from.

Parameters:
uri - The uri to set.


Copyright © 2003-2012 AndroMDA.org. All Rights Reserved.