org.objectweb.jonathan.tools.compilers

Class SequenceCompiler

Implemented Interfaces:
TagCompiler

public class SequenceCompiler
extends java.lang.Object
implements TagCompiler

Implements the Sequence XML to java compilation. Used by the XML to java translator: Kcf2java. This is not an Kcf2java built-in tag compiler. It must therefore be provided in the Kcf2java property file (which is an Kcf2java command line argument) in order to allow Kcf2java to compile XML configuration files with containing valid implicit factory tags.

Method Summary

String
writeComponent(XMLElement _current_component, String _element_name, String _configuration_var_name, Writer _writer, String _configuration_name)
Writes the java code translation of the given sequence XML description (as a XMLElement).

Method Details

writeComponent

public String writeComponent(XMLElement _current_component,
                             String _element_name,
                             String _configuration_var_name,
                             Writer _writer,
                             String _configuration_name)
            throws IOException
Writes the java code translation of the given sequence XML description (as a XMLElement).
Specified by:
writeComponent in interface TagCompiler

Parameters:
_current_component - the sequence component XML description
_element_name - its element's name
_configuration_var_name - unused
_writer - used to write the java translation code
_configuration_name - unused

Returns:
the newly created sequence java component's variable name