FileDocCategorySizeDatePackage
MapAdapter.javaAPI DocExample2903Mon Jul 23 13:26:44 BST 2007org.apache.struts2.views.xslt

MapAdapter

public class MapAdapter extends AbstractAdapterElement
MapAdapter adapters a java.util.Map type to an XML DOM with the following structure:


...
...

...

Fields Summary
Constructors Summary
public MapAdapter()

 
public MapAdapter(AdapterFactory adapterFactory, AdapterNode parent, String propertyName, Map value)

        setContext( adapterFactory, parent, propertyName, value );
    
Methods Summary
protected java.util.ListbuildChildAdapters()

        List<Node> children = new ArrayList<Node>(map().entrySet().size());

        for (Object o : map().entrySet()) {
            Map.Entry entry = (Map.Entry) o;
            Object key = entry.getKey();
            Object value = entry.getValue();
            EntryElement child = new EntryElement(
                    getAdapterFactory(), this, "entry", key, value);
            children.add(child);
        }

        return children;
    
public java.util.Mapmap()

        return (Map)getPropertyValue();