

Public Methods | |
| String | writeComponent (XMLElement _current_component, String _element_name, String _configuration_var_name, Writer _writer, String _configuration_name) throws IOException |
Static Private Attributes | |
| int | nb = 0 |
Definition at line 40 of file AliasCompiler.java.
|
|
Translates a XML
Reimplemented from TagCompiler. Definition at line 55 of file AliasCompiler.java. 00060 {
00061
00062 String $current_tag = _current_component.getTagName();
00063
00064 if ($current_tag.equals("ALIAS")){
00065 String $alias = _current_component.getProperty("NAME");
00066 String $var_name = "ALIAS" + (nb++);
00067 _writer.write(" Component " + $var_name +
00068 " = new org.objectweb.jonathan.libs.kernel.decoders.JAlias(\"" +
00069 XML2Kernel.normalize($alias)+ "\",'/');\n");
00070 return $var_name;
00071 } else {
00072 throw new IOException("TAG error at line " + _current_component.getLineNr() + ":\n" +
00073 "ALIAS excepted instead of " + $current_tag);
00074 }
00075 }
|
|
|
Definition at line 42 of file AliasCompiler.java. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001