org.objectweb.jonathan.tools.compilers

Class PropertyCompiler

Implemented Interfaces:
TagCompiler

public class PropertyCompiler
extends java.lang.Object
implements TagCompiler

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

Method Summary

String
writeComponent(XMLElement _current_component, String _element_name, String _configuration_var_name, Writer _writer, String _configuration_name)
Translates a XML PROPERTY element to the java code creating its corresponding property runtime component.

Method Details

writeComponent

public String writeComponent(XMLElement _current_component,
                             String _element_name,
                             String _configuration_var_name,
                             Writer _writer,
                             String _configuration_name)
            throws IOException
Translates a XML PROPERTY element to the java code creating its corresponding property runtime component. Supported property types are:
  • String
  • char
  • boolean
  • byte
  • short
  • int
  • long
  • float
  • double
Specified by:
writeComponent in interface TagCompiler

Parameters:
_current_component - the Property 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 property's configuration name XML property