org.objectweb.jonathan.tools.compilers
Class SequenceCompiler

java.lang.Object
  extended byorg.objectweb.jonathan.tools.compilers.SequenceCompiler
All 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.


Constructor Summary
SequenceCompiler()
           
 
Method Summary
 java.lang.String writeComponent(nanoxml.XMLElement _current_component, java.lang.String _element_name, java.lang.String _configuration_var_name, java.io.Writer _writer, java.lang.String _configuration_name)
          Writes the java code translation of the given sequence XML description (as a XMLElement).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceCompiler

public SequenceCompiler()
Method Detail

writeComponent

public java.lang.String writeComponent(nanoxml.XMLElement _current_component,
                                       java.lang.String _element_name,
                                       java.lang.String _configuration_var_name,
                                       java.io.Writer _writer,
                                       java.lang.String _configuration_name)
                                throws java.io.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
Throws:
java.io.IOException - if something goes wrong.