Subversion Repositories XServices

Compare Revisions

Ignore whitespace Rev 180 → Rev 181

/xservices/trunk/src/java/net/brutex/xservices/types/ant/AntProperty.java
18,6 → 18,7
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
 
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
 
44,13 → 45,13
/**
* Converts a Map<String, String> into a list of
* AntProperties.
* @param map The map to convert
* @param newMap The map to convert
* @return A list of key/value pairs
*/
public static List<AntProperty> createAntPropertyList(Map<String, String> map) {
public static List<AntProperty> createAntPropertyList(Map<String, Object> newMap) {
List<AntProperty> list = new ArrayList<AntProperty>();
for(Map.Entry<String, String> e : map.entrySet()) {
list.add(new AntProperty(e.getKey(), e.getValue()));
for(Map.Entry<String, Object> e : newMap.entrySet()) {
list.add(new AntProperty(e.getKey(), (String)e.getValue()));
}
return list;
}