use of main.system.datatypes.XMap in project Eidolons by IDemiurge.
the class XML_Converter method getXMLFromTypeList.
public static String getXMLFromTypeList(List<ObjType> typeList) {
Map<OBJ_TYPE, String> subStringMap = new XMap<>();
String xml = "";
for (ObjType type : typeList) {
String typeString = subStringMap.get(type.getOBJ_TYPE_ENUM());
if (typeString == null) {
typeString = "";
}
typeString += wrap(XML_Formatter.formatStringForXmlNodeName(type.getName()), "");
subStringMap.put(type.getOBJ_TYPE_ENUM(), typeString);
}
for (OBJ_TYPE type : subStringMap.keySet()) {
xml += wrap(type.getName(), subStringMap.get(type));
}
xml = wrap(TYPES_NODE, xml);
return xml;
}