org.ocltf.test
Class TranslationTest

java.lang.Object
  extended byorg.ocltf.test.TranslationTest

public class TranslationTest
extends java.lang.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.
 java.util.Map getExpressionConfigs()
          Returns all the ExpressionTest objects in a Map keyed by the from element body.
 java.lang.String getTranslation()
          Returns the name of the translator, for which this TranslationTest will be used to test.
 java.net.URL getUri()
          Gets the URI for the test which this TranslationTest was loaded from.
 void setTranslation(java.lang.String translation)
          Sets the name of the translator for which this TranslationTest will be used to test.
protected  void setUri(java.net.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(java.lang.String translation)
Sets the name of the translator for which this TranslationTest will be used to test.

Parameters:
translation - the name .ocltf.the translation to test.

getTranslation

public java.lang.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 java.util.Map getExpressionConfigs()
Returns all the ExpressionTest objects in a Map keyed by the from element body.

Returns:
Map

getUri

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

Returns:
Returns the uri.

setUri

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

Parameters:
uri - The uri to set.


Copyright © 2003-2004 Chad Brandon. All Rights Reserved.