public interface TagCompiler
Kcf2java
through its getTagCompiler()
method to dispatch component tags to java code compilation.
Has to be implemented for each runtime component specific type.
The configuration tag compiler is not needed, since Kcf2java
has its mechanism as a built-in one.Modifier and Type | Method and Description |
---|---|
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 element to the java code
creating its corresponding runtime component(s).
|
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
_current_component
- the 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 configuration absolute namejava.io.IOException
- if something goes wrong.