Skip to content
Snippets Groups Projects
Commit dcb951b1 authored by Ludovic Apvrille's avatar Ludovic Apvrille
Browse files

Update on TToool for plugins

parent c64c3af8
No related branches found
No related tags found
No related merge requests found
...@@ -144,17 +144,34 @@ public class TMLCPLib extends TMLElement { ...@@ -144,17 +144,34 @@ public class TMLCPLib extends TMLElement {
public String toXML() { public String toXML() {
String s = "<TMLCPLIB name=\"" + name + "\" cpMECType=\"" + cpMECType + "\" typeName=\"" + typeName + "\">\n"; String s = "<TMLCPLIB name=\"" + name + "\" cpMECType=\"" + cpMECType + "\" typeName=\"" + typeName + "\">\n";
for(TMLCPLibArtifact arti: artifacts) { if (artifacts != null) {
for(TMLCPLibArtifact arti: artifacts) {
s += arti.toXML(); s += arti.toXML();
}
} }
for(String mu: mappedUnits) {
s += "<MAPPEUNIT unit=\"" + mu + "\" />\n"; if (mappedUnits != null) {
for(String mu: mappedUnits) {
if (mu != null) {
s += "<MAPPEUNIT unit=\"" + mu + "\" />\n";
}
}
} }
for(String aa: assignedAttributes) {
s += "<ASSIGNEDATTRIBUTE attr=\"" + aa + "\" />\n"; if (assignedAttributes!= null) {
for(String aa: assignedAttributes) {
if (aa != null) {
s += "<ASSIGNEDATTRIBUTE attr=\"" + aa + "\" />\n";
}
}
} }
for(Integer i: transferTypes) {
s += "<TRANSFERTYPE type=\"" + i.toString() + "\" />\n"; if (transferTypesm != null) {
for(Integer i: transferTypes) {
if (i != null) {
s += "<TRANSFERTYPE type=\"" + i.toString() + "\" />\n";
}
}
} }
s += "</TMLCPLIB>"; s += "</TMLCPLIB>";
return s; return s;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment