org.eclipse.actf.validation.doc.codeproc
Interface ICodeProcessorFactory

All Known Implementing Classes:
DefaultCodeProcessorFactory

public interface ICodeProcessorFactory

Implementations of this interface retreave the desired ICodeProcessor based upon the language and model being used as given in the actf:scriptlang and actf:model attribute values of the <rulebase> element.

Author:
Mike Squillace

Method Summary
 ICodeProcessor getCodeProcessor(String lang, IModel model)
          retrieve a ICodeProcessor for the given language.
 

Method Detail

getCodeProcessor

ICodeProcessor getCodeProcessor(String lang,
                                IModel model)
retrieve a ICodeProcessor for the given language. ACTF currently supports the following scripting languages:

If the actf:scriptlang attribute value is set to 'java' and/or actf:class and actf:package attributes are provided, then the ICodeProcessor returned is a CodeCompiler object so that Java code may be embedded in the XML document.

Parameters:
lang - -- language for which a AbstractCodeInterpreter is to be instantiated
model - -- model for which code interpreter is to be built
Returns:
code processor
See Also:
"resources/actf.xml"