Examples of MapItem


Examples of org.activiti.explorer.data.MapItem

          key = key.toUpperCase();
        }
        newRow.put( key, rowEntry.getValue() );
      }
     
      items.add(new MapItem(newRow));
    }
    return items;
  }
View Full Code Here

Examples of org.exolab.castor.mapping.MapItem

            Object key = object;
            Object value = object;

            if (object instanceof MapItem) {
                MapItem item = (MapItem) object;
                key = item.getKey();
                value = item.getValue();
                if (value == null) {
                    value = object;
                }
                if (key == null) {
                    key = value;
View Full Code Here

Examples of org.exolab.castor.mapping.MapItem

            }
           
            //-- special handling for mapped objects
            if (descriptor.isMapped()) {
                if (!(val instanceof MapItem)) {
                    MapItem mapItem = new MapItem(fieldState.key, val);
                    val = mapItem;
                }
                else {
                    //-- make sure value exists (could be a reference)
                    MapItem mapItem = (MapItem)val;
                    if (mapItem.getValue() == null) {
                        //-- save for later...
                        addObject = false;
                        addReference(mapItem.toString(), state.object, descriptor);
                    }
                }
            }
           
            if (addObject) {
View Full Code Here

Examples of org.exolab.castor.mapping.MapItem

                while (enumeration.hasMoreElements()) {
                    String nsPrefix = (String)enumeration.nextElement();
                    if (nsPrefix == null) nsPrefix = "";
                    String nsURI = _namespaces.getNamespaceURI(nsPrefix);
                    if (nsURI == null) nsURI = "";
                    MapItem mapItem = new MapItem(nsPrefix, nsURI);
                    handler.setValue(state.object, mapItem);
                }
            }
        }
    } //-- processNamespaces
View Full Code Here

Examples of org.exolab.castor.mapping.MapItem

                boolean processCollection = true;
                if (_saveMapKeys) {
                    MapHandler mapHandler = MapHandlers.getHandler(type);
                    if (mapHandler != null) {
                        processCollection = false;
                        MapItem item = new MapItem();
                        Enumeration keys = mapHandler.keys(obj);
                        while (keys.hasMoreElements()) {
                            item.setKey(keys.nextElement());
                            item.setValue(mapHandler.get(obj, item.getKey()));
                            marshal(item, elemDescriptor, handler, myState);
                        }
                    }

                }
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.exolab.castor.mapping.MapItem

        }
        return map;
    }

    public Object newInstance(Object parent) {
        return new MapItem();
    }
View Full Code Here

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.exolab.castor.mapping.MapItem

        }
        return map;
    }

    public Object newInstance(Object parent) {
        return new MapItem();
    }
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.