/**
* @see java.lang.Object#toString()
*/
public String toString() {
FastStringBuffer buffer = new FastStringBuffer();
buffer.append("<xml>\n");
if (this.name != null) {
buffer.append("<name>");
buffer.append(this.name);
buffer.append("</name>\n");
}
buffer.append("<version>");
buffer.append(version);
buffer.append("</version>\n");
buffer.append("<executable>");
buffer.append(executableOrJar);
buffer.append("</executable>\n");
for (Iterator<String> iter = libs.iterator(); iter.hasNext();) {
buffer.append("<lib>");
buffer.append(iter.next().toString());
buffer.append("</lib>\n");
}
if (forcedLibs.size() > 0) {
for (Iterator<String> iter = forcedLibs.iterator(); iter.hasNext();) {
buffer.append("<forced_lib>");
buffer.append(iter.next().toString());
buffer.append("</forced_lib>\n");
}
}
if (this.envVariables != null) {
for (String s : envVariables) {
buffer.append("<env_var>");
buffer.append(s);
buffer.append("</env_var>\n");
}
}
if (this.stringSubstitutionVariables != null && this.stringSubstitutionVariables.size() > 0) {
Set<Entry<Object, Object>> entrySet = this.stringSubstitutionVariables.entrySet();
for (Entry<Object, Object> entry : entrySet) {
buffer.append("<string_substitution_var>");
buffer.append("<key>");
buffer.appendObject(entry.getKey());
buffer.append("</key>");
buffer.append("<value>");
buffer.appendObject(entry.getValue());
buffer.append("</value>");
buffer.append("</string_substitution_var>\n");
}
}
if (this.predefinedCompletionsPath.size() > 0) {
for (String s : this.predefinedCompletionsPath) {
buffer.append("<predefined_completion_path>");
buffer.append(s);
buffer.append("</predefined_completion_path>");
}
}
buffer.append("</xml>");
return buffer.toString();
}