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

ArrayAdapter

public 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.ListbuildChildAdapters()

        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;