public String toString(){ String value="<v id=\""+id+"\" entityID=\""+ingenias.generator.util.Conversor.replaceInvalidCharsForID(this.entityID)+"\" attID=\""+attID +"\" >"+ ingenias.generator.util.Conversor.replaceInvalidChar(this.value)+"</v>\n"; return value; } }
private static String string2GXL(String value, String key) { String gxl = "\t\t<attr name=\"" + key + "\">" + "\n\t\t\t<string>" + ingenias.generator.util.Conversor.replaceInvalidChar(value)+ "</string>\n" + "\t\t</attr>\n"; return gxl; }
public TemplateDataVar(String id, String value, String entityID, String attID) { this.id = id; this.entityID=entityID; this.attID=attID; //this.fts=fts; try { value=ingenias.generator.util.Conversor.replaceInvalidChar(value); this.value = value; } catch (Exception e){ e.printStackTrace(); } }
/** * Constructor for the TemplateDataVar object * *@param id Description of Parameter *@param value Description of Parameter */ public TemplateDataVar(String id, String value) { this.id = id; try { value=ingenias.generator.util.Conversor.replaceInvalidChar(value); this.value = value; } catch (Exception e){ e.printStackTrace(); } }
public static void saveMap(Hashtable ht, OutputStreamWriter fos) throws IOException { fos.write("<mapproperties>\n"); Enumeration keys = ht.keys(); while (keys.hasMoreElements()) { String key = keys.nextElement().toString(); fos.write( ("<key id=\"" + key + "\">" + ingenias.generator.util.Conversor.replaceInvalidChar(ht.get(key).toString()) + "</key>\n")); } fos.write("</mapproperties>\n"); }
s=ingenias.generator.util.Conversor.replaceInvalidChar(s);
s=ingenias.generator.util.Conversor.replaceInvalidChar(s);
File current = (File) v.elementAt(k); if (current!=null) fos.write(("<lastfile>" + ingenias.generator.util.Conversor.replaceInvalidChar(current.getPath()) + "</lastfile>\n").getBytes()); .replaceInvalidChar(ids.getCurrentImageFolder() .getPath()) + "</lastimage>\n") .getBytes());
public static String convertArrobaFormat(String containment) throws ingenias.exception.NotWellFormed { String result = convertArrobaToTag(replaceInvalidChar(containment)); return convertTaggedFormat(result); }
/** * Description of the Method * * @param prop * Description of Parameter * @param fos * Description of Parameter * @exception java.io.IOException * Description of Exception */ private void saveProjectProperties(IDEState ids, OutputStreamWriter fos) throws java.io.IOException { fos.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project cid=\"" + Editor.idCounter + "\" version=\"1.2\">\n"); Enumeration ppenumeration = ids.prop.elements(); fos.write(("<projectproperties>\n")); while (ppenumeration.hasMoreElements()) { ProjectProperty pp = (ProjectProperty) ppenumeration.nextElement(); fos.write(pp.toXML()); } Vector<String> diagrams = ids.editor.getOpenedDiagrams(); for (String diagram : diagrams) { fos.write(" <openeddiagram>" + ingenias.generator.util.Conversor .replaceInvalidChar(diagram) + "</openeddiagram>"); } fos.write(("</projectproperties>\n")); }
result.append(replaceInvalidChar(containment.substring(lastPos, containment.length())));
if (re != null) { tempOutput.write( ("<role idEntity=\"" + ingenias.generator.util.Conversor.replaceInvalidChar(en.getEntity(idEnt[k]).getId()) + "\" class=\"" + ingenias.generator.util.Conversor.replaceInvalidChar(en.getClass(idEnt[k])) + "\" roleName=\"" + en.getRole(idEnt[k]) + "\" type=\"" + re.getClass().getName() + "\" dgcid=\""+idEnt[k]+"\">\n"));
value = ingenias.generator.util.Conversor.replaceInvalidChar(value);
e.getClass().getName() + ": "+Conversor.replaceInvalidChar(e.getMessage()).replace("\n","<br>")+". The trace is <br>" + Conversor.replaceInvalidChar(this.getTrace(e)).replace("\n","<br>"));
e.getClass().getName() + ": "+Conversor.replaceInvalidChar(e.getMessage()).replace("\n","<br>")+". The trace is <br>" + Conversor.replaceInvalidChar(this.getTrace(e)).replace("\n","<br>"));