public ItemMap(ItemMappedById pMi) { mi = pMi; baseMap = mi.getMap(); additionalAttributes.put(ITEM_PROPERTY_NAME, mi.getItem()); additionalAttributes.put(ITEM_PROPERTY_ID, mi.getItem().getId()); }
public Object get(Object obj) { // "item" or "id" if (additionalAttributes.containsKey(obj)) { return additionalAttributes.get(obj); } ; // prop names or prop ids return mi.getValueObject(obj.toString()); }
public Item getItem() { return mi.getItem(); }