A C D E F G I M N O P R S T W

A

adaptClass() - Static method in class org.andromda.translation.ocl.testsuite.TraceTranslator
This method is called by the main method during the build process, to "adapt" the class to the OCL parser.
addExpression(ExpressionTest) - Method in class org.andromda.translation.ocl.testsuite.TranslationTest
Adds an ExpressionTest to this TranslationTest.
argumentsMatch(OperationDeclaration, OperationFacade) - Method in class org.andromda.translation.ocl.testsuite.ContextElementFinder
Returns true if the arguments contained within oclOperation and facadeOperation match, false otherwise.

C

ContextElementFinder - Class in org.andromda.translation.ocl.testsuite
Finds the context element defined in the OCL expression.
ContextElementFinder(ModelAccessFacade) - Constructor for class org.andromda.translation.ocl.testsuite.ContextElementFinder
The Constructor which takes model, which is an instance of ModelAccessFacade that will allow us to search the model for the context element.
ContextElementFinderException - Exception in org.andromda.translation.ocl.testsuite
Any unchecked exception that will be thrown when an unexpected ContextElementFinder error occurs.
ContextElementFinderException(Throwable) - Constructor for exception org.andromda.translation.ocl.testsuite.ContextElementFinderException
Constructs an instance of ContextElementFinderException.
ContextElementFinderException(String) - Constructor for exception org.andromda.translation.ocl.testsuite.ContextElementFinderException
Constructs an instance of ContextElementFinderException.
ContextElementFinderException(String, Throwable) - Constructor for exception org.andromda.translation.ocl.testsuite.ContextElementFinderException
Constructs an instance of ContextElementFinderException.

D

discoverTests(String) - Method in class org.andromda.translation.ocl.testsuite.TranslationTestDiscoverer
This method discovers all translation tests within the given directory.

E

ExpressionTest - Class in org.andromda.translation.ocl.testsuite
Represents a ExpressionText object loaded into an TranslatorTestConfig object.
ExpressionTest() - Constructor for class org.andromda.translation.ocl.testsuite.ExpressionTest
 

F

findModelElement(String, String) - Method in class org.andromda.translation.ocl.testsuite.TranslationTestProcessor
Finds the classifier having fullyQualifiedName in the model.

G

getAdaptedClassOutputDirectory() - Method in class org.andromda.translation.ocl.testsuite.TraceTranslator
Retrieves the output directory which the adapted class will be written to.
getAdaptedTranslationClass() - Method in class org.andromda.translation.ocl.testsuite.TraceTranslator
Creates and returns the adapted translator class.
getCaseMethodBody(CtMethod) - Method in class org.andromda.translation.ocl.testsuite.TraceTranslator
Creates and returns the method body for each "caseA" method
getContextElement() - Method in class org.andromda.translation.ocl.testsuite.ContextElementFinder
Returns the context element found in the model from the expression.
getExpressionConfigs() - Method in class org.andromda.translation.ocl.testsuite.TranslationTest
Returns all the ExpressionTest objects in a Map keyed by the from element body.
getFrom() - Method in class org.andromda.translation.ocl.testsuite.ExpressionTest
Gets the from translation.
getInAMethodBody(CtMethod) - Method in class org.andromda.translation.ocl.testsuite.TraceTranslator
Creates and returns the method body for each "inA" method
getInstance() - Static method in class org.andromda.translation.ocl.testsuite.TraceTranslator
Creates and returns an new Instance of this ExpressionTranslator as a Translator object.
getMethodPrefix(CtMethod) - Method in class org.andromda.translation.ocl.testsuite.TraceTranslator
Returns the prefix for the method (inA or outA)
getMethodTrace(CtMethod) - Method in class org.andromda.translation.ocl.testsuite.TraceTranslator
Creates the debug statement that will be output for each method
getOclFragmentName(CtMethod) - Method in class org.andromda.translation.ocl.testsuite.TraceTranslator
Returns the OCL fragment name that must have a matching name in the library translation template in order to be placed into the Expression translated expression buffer.
getOutAMethodBody(CtMethod) - Method in class org.andromda.translation.ocl.testsuite.TraceTranslator
Creates and returns the method body for each "inA" method
getTest(String) - Method in class org.andromda.translation.ocl.testsuite.TranslationTestDiscoverer
Returns the TranslationTest for the given translation (if one can be found), otherwise returns null.
getTests() - Method in class org.andromda.translation.ocl.testsuite.TranslationTestDiscoverer
Returns the discovered translation tests keyed by translation.
getTo() - Method in class org.andromda.translation.ocl.testsuite.ExpressionTest
Gets the translation to which the translation should match.
getTranslation() - Method in class org.andromda.translation.ocl.testsuite.TranslationTest
Returns the name of the translator, for which this TranslationTest will be used to test.
getUri() - Method in class org.andromda.translation.ocl.testsuite.TranslationTest
Gets the URI for the test which this TranslationTest was loaded from.

I

inAOperationContextDeclaration(AOperationContextDeclaration) - Method in class org.andromda.translation.ocl.testsuite.ContextElementFinder
 
instance() - Static method in class org.andromda.translation.ocl.testsuite.TranslationTestDiscoverer
Gets the shared instance of this TranslationTestDiscoverer.
instance() - Static method in class org.andromda.translation.ocl.testsuite.TranslationTestProcessor
Gets the shared instance of this class.

M

main(String[]) - Static method in class org.andromda.translation.ocl.testsuite.TraceTranslator
This main method is called during the build process, to "adapt" the class to the OCL parser.

N

needsAdaption() - Method in class org.andromda.translation.ocl.testsuite.TraceTranslator
Checks to see if this class needs to be adapted If it has the "adapted" field then we know it already has been adapted.

O

operation - Variable in class org.andromda.translation.ocl.testsuite.ContextElementFinder
The operation that is set if the context of the constraint happens to be an operation.
org.andromda.translation.ocl.testsuite - package org.andromda.translation.ocl.testsuite
 

P

postProcess() - Method in class org.andromda.translation.ocl.testsuite.ContextElementFinder
We use the postProcess method to retrieve the contextType from the expression and then find the actual model element using metafacades.
postProcess() - Method in class org.andromda.translation.ocl.testsuite.TraceTranslator
Ancestor abstract method which must be implemented even when it does nothing.

R

runSuite() - Method in class org.andromda.translation.ocl.testsuite.TranslationTestProcessor
Runs the test suite.

S

setConfiguration(Configuration) - Method in class org.andromda.translation.ocl.testsuite.TranslationTestProcessor
Sets AndroMDA configuration instance.
setFrom(String) - Method in class org.andromda.translation.ocl.testsuite.ExpressionTest
Set the from translation.
setResult(TestResult) - Method in class org.andromda.translation.ocl.testsuite.TranslationTestProcessor
Sets the test result in which the result of the run will be stored.
setTestSourceDirectory(String) - Method in class org.andromda.translation.ocl.testsuite.TranslationTestProcessor
Sets the location of the directory that contains the test souce.
setTo(String) - Method in class org.andromda.translation.ocl.testsuite.ExpressionTest
Sets the translation to which the translation should match after the translation of the 'from' property occurs.
setTranslation(String) - Method in class org.andromda.translation.ocl.testsuite.TranslationTest
Sets the name of the translator for which this TranslationTest will be used to test.
setTranslationName(String) - Method in class org.andromda.translation.ocl.testsuite.TranslationTestProcessor
Sets the name of the translation to test.
setUri(URL) - Method in class org.andromda.translation.ocl.testsuite.TranslationTest
Sets the URI for the test which this TranslationTest was loaded from.
setUseTraceTranslator(boolean) - Method in class org.andromda.translation.ocl.testsuite.TranslationTestProcessor
Sets whether or not to use the trace translator.
shutdown() - Method in class org.andromda.translation.ocl.testsuite.TranslationTestDiscoverer
Shuts down this instance and releases any resources.
shutdown() - Method in class org.andromda.translation.ocl.testsuite.TranslationTestProcessor
Shuts down this instance.

T

testTranslation() - Method in class org.andromda.translation.ocl.testsuite.TranslationTestProcessor
Tests the current translation set in the currentTestTranslation property.
TraceTranslator - Class in org.andromda.translation.ocl.testsuite
This class allows us to trace the parsing of the expression.
TraceTranslator() - Constructor for class org.andromda.translation.ocl.testsuite.TraceTranslator
Constructs an instance of TraceTranslator.
translate(String, String, Object) - Method in class org.andromda.translation.ocl.testsuite.TraceTranslator
 
TranslationTest - Class in org.andromda.translation.ocl.testsuite
Represents a TranslatorTest object loaded and executed by the ExpressionTranslatorTest object.
TranslationTest() - Constructor for class org.andromda.translation.ocl.testsuite.TranslationTest
 
TranslationTestDiscoverer - Class in org.andromda.translation.ocl.testsuite
Finds all translation tests from the current base directory up.
TranslationTestDiscoverer() - Constructor for class org.andromda.translation.ocl.testsuite.TranslationTestDiscoverer
 
TranslationTestDiscovererException - Exception in org.andromda.translation.ocl.testsuite
Any unchecked exception that will be thrown when an unexpected error occurs during TranslationTestDiscoverer processing.
TranslationTestDiscovererException(Throwable) - Constructor for exception org.andromda.translation.ocl.testsuite.TranslationTestDiscovererException
Constructs an instance of TranslationTestDiscovererException.
TranslationTestDiscovererException(String) - Constructor for exception org.andromda.translation.ocl.testsuite.TranslationTestDiscovererException
Constructs an instance of TranslationTestDiscovererException.
TranslationTestDiscovererException(String, Throwable) - Constructor for exception org.andromda.translation.ocl.testsuite.TranslationTestDiscovererException
Constructs an instance of TranslationTestDiscovererException.
TranslationTestProcessor - Class in org.andromda.translation.ocl.testsuite
This object is used to test Translations during development.
TranslationTestProcessorException - Exception in org.andromda.translation.ocl.testsuite
Any unchecked exception that will be thrown when an unexpected translator test exception occurs.
TranslationTestProcessorException(Throwable) - Constructor for exception org.andromda.translation.ocl.testsuite.TranslationTestProcessorException
Constructs an instance of TranslationTestProcessorException.
TranslationTestProcessorException(String) - Constructor for exception org.andromda.translation.ocl.testsuite.TranslationTestProcessorException
Constructs an instance of TranslationTestProcessorException.
TranslationTestProcessorException(String, Throwable) - Constructor for exception org.andromda.translation.ocl.testsuite.TranslationTestProcessorException
Constructs an instance of TranslationTestProcessorException.

W

writeAdaptedClass(CtClass) - Method in class org.andromda.translation.ocl.testsuite.TraceTranslator
Writes the class to the directory found by the class loader (since the class is a currently existing class)

A C D E F G I M N O P R S T W

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