Iterator itTpEnd = listaTpEnd.iterator();
StringBuilder javaScript = new StringBuilder("function getTipoEndereco(n)\n{\n");
javaScript.append("\tconteudo = \"\";\n");
while (itTpEnd.hasNext())
{
TipoEnderecoTend tpEnd = (TipoEnderecoTend)itTpEnd.next();
javaScript.append("\tconteudo += \"\\t\\t\\t\\t<option value = \\\"")
.append(tpEnd.getCodTpend().toString() )
.append("\\\">")
.append(tpEnd.getDescricaoTpend())
.append("\";\n")
.append("\tconteudo += \"</option>\\n\"\n");
}
javaScript.append("\treturn(conteudo);\n}");
return javaScript.toString();