1 15 package org.apache.tapestry.binding; 16 17 import org.apache.hivemind.HiveMind; 18 import org.apache.tapestry.spec.IComponentSpecification; 19 import org.apache.tapestry.spec.IParameterSpecification; 20 21 25 public class BindingUtils 26 { 27 40 public static String getDefaultBindingType(IComponentSpecification specification, 41 String parameterName, String metaDefaultBindingType) 42 { 43 String result = null; 44 45 IParameterSpecification ps = specification.getParameter(parameterName); 46 47 if (ps != null) 48 result = ps.getDefaultBindingType(); 49 50 if (HiveMind.isBlank(result)) 51 result = metaDefaultBindingType; 52 53 return result; 54 } 55 } | Popular Tags |