Пример #1
0
  public ItemMap(ItemMappedById pMi) {
    mi = pMi;
    baseMap = mi.getMap();

    additionalAttributes.put(ITEM_PROPERTY_NAME, mi.getItem());
    additionalAttributes.put(ITEM_PROPERTY_ID, mi.getItem().getId());
  }
Пример #2
0
  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());
  }
Пример #3
0
 public Item getItem() {
   return mi.getItem();
 }