Examples of MapItem


Examples of org.exolab.castor.mapping.MapItem

    public void resetValue(Object object) {
        this.getAttributes(object).clear();
    }

    public void setValue(Object object, Object value) {
        MapItem item = (MapItem) value;
        this.getAttributes(object).put(item.getKey(), item.getValue());
    }
View Full Code Here

Examples of org.exolab.castor.mapping.MapItem

        Map.Entry entry;
        Object key;
        while (iterator.hasNext()) {
            entry = (Map.Entry) iterator.next();
            key = entry.getKey();
            map.put(key, new MapItem(key, entry.getValue()));
        }
        return map;
    }
View Full Code Here

Examples of org.iremake.common.model.map.MapItem

        // we add an engineer unit to the capital province
        int capital = properties.getInt(KEY_CAPITAL);
        for (Province province : provinces) {
            if (province.getID() == capital) {
                MapItem unit = new MapItem(MapItemType.Engineer, province.getTownPosition());
                units.addElement(unit);
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.