MapAdapterpublic class MapAdapter extends AbstractAdapterElement MapAdapter adapters a java.util.Map type to an XML DOM with the following
structure:
...
...
...
|
Constructors Summary |
---|
public MapAdapter()
| public MapAdapter(AdapterFactory adapterFactory, AdapterNode parent, String propertyName, Map value)
setContext( adapterFactory, parent, propertyName, value );
|
Methods Summary |
---|
protected java.util.List | buildChildAdapters()
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.Map | map()
return (Map)getPropertyValue();
|
|