Coverage Report - org.apache.tapestry.binding.ClientIdListBindingFactory
 
Classes in this File Line Coverage Branch Coverage Complexity
ClientIdListBindingFactory
0%
0/4
0%
0/2
1
 
 1  
 package org.apache.tapestry.binding;
 2  
 
 3  
 import org.apache.hivemind.Location;
 4  
 import org.apache.tapestry.IBinding;
 5  
 import org.apache.tapestry.IComponent;
 6  
 
 7  
 import java.util.List;
 8  
 
 9  
 /**
 10  
  * Converts string values to String arrays and hands them off to a {@link ClientIdListBinding} instance.
 11  
  */
 12  0
 public class ClientIdListBindingFactory extends AbstractBindingFactory {
 13  
 
 14  
     public IBinding createBinding(IComponent root, String bindingDescription, String expression, Location location)
 15  
     {
 16  
         // convert to String array first
 17  0
         List ids = (List) getValueConverter().coerceValue(expression, List.class);
 18  0
         String[] clientIds = (String[]) ids.toArray(new String[ids.size()]);
 19  
 
 20  0
         return new ClientIdListBinding(bindingDescription, getValueConverter(), location, root, clientIds);
 21  
     }
 22  
 }