*/
@SuppressWarnings("unchecked") private HashMap<Integer, Object> getPropertyMap(PropertySet ps)
{
HashMap<Integer, Object> map = new HashMap<Integer, Object>();
Property[] properties;
Property property;
List<Section> sections = ps.getSections();
int index = 100;
for (Section section : sections)
{
properties = section.getProperties();
for (int loop = 0; loop < properties.length; loop++)
{
property = properties[loop];
// the following causes an "unnecessary cast" warning in JDK1.4
// this is in place to ensure compatibility with JDK1.5
map.put(Integer.valueOf(index + (int) property.getID()), property.getValue());
//System.out.println ("id="+(index+property.getID())+" value="+property.getValue());
}
index += 100;
}
return (map);