ArrayAdapterpublic class ArrayAdapter extends AbstractAdapterElement
Fields Summary |
---|
private Log | log |
Constructors Summary |
---|
public ArrayAdapter()
| public ArrayAdapter(AdapterFactory adapterFactory, AdapterNode parent, String propertyName, Object value)
setContext(adapterFactory, parent, propertyName, value);
|
Methods Summary |
---|
protected java.util.List | buildChildAdapters()
List<Node> children = new ArrayList<Node>();
Object[] values = (Object[]) getPropertyValue();
for (Object value : values) {
Node childAdapter = getAdapterFactory().adaptNode(this, "item", value);
if (childAdapter != null)
children.add(childAdapter);
if (log.isDebugEnabled()) {
log.debug(this + " adding adapter: " + childAdapter);
}
}
return children;
|
|