org.objectweb.jonathan.tools.compilers
Class AliasCompiler

java.lang.Object
  extended byorg.objectweb.jonathan.tools.compilers.AliasCompiler
All Implemented Interfaces:
TagCompiler

public class AliasCompiler
extends java.lang.Object
implements TagCompiler

XML Alias tag to runtime component java code compiler. Used by Kcf2java through its getTagCompiler() method to write Alias tags' java code compilation.


Constructor Summary
AliasCompiler()
           
 
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)
          Translates a XML ALIAS element to the java code creating its corresponding alias runtime component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AliasCompiler

public AliasCompiler()
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
Translates a XML ALIAS element to the java code creating its corresponding alias runtime component.

Specified by:
writeComponent in interface TagCompiler
Parameters:
_current_component - the Alias XML tag to be compiled
_element_name - its element name
_configuration_var_name - its containing configuration java code variable name
_writer - where to write the translated java code
_configuration_name - the alias's configuration name XML property
Returns:
the name of the variable holding the component in the Java code
Throws:
java.io.IOException - if something goes wrong.