public boolean[] getBooleanValues(java.lang.Object value, boolean[] defaultValue) { return GetterUtil.getBooleanValues(value, defaultValue); }
/** * Returns the Object value as a boolean array. If the value is * <code>null</code>, the {@link #DEFAULT_BOOLEAN_VALUES} array is returned. * In the returned array, each value element that is <code>null</code> is * replaced by the {@link #DEFAULT_BOOLEAN}, and each value element that * does not match a {@link #BOOLEANS} value is replaced with * <code>false</code>. * * @param value the value to convert * @return the value as a boolean array */ public static boolean[] getBooleanValues(Object value) { return getBooleanValues(value, DEFAULT_BOOLEAN_VALUES); }
public boolean[] getBooleanValues(java.lang.String[] values, boolean[] defaultValue) { return GetterUtil.getBooleanValues(values, defaultValue); }
/** * Returns the String values as a boolean array. If the values array is * <code>null</code>, the {@link #DEFAULT_BOOLEAN_VALUES} array is returned. * In the returned array, each value element that is <code>null</code> is * replaced by the {@link #DEFAULT_BOOLEAN}, and each value element that * does not match a {@link #BOOLEANS} value is replaced with * <code>false</code>. * * @param values the values to convert * @return the values as a boolean array */ public static boolean[] getBooleanValues(String[] values) { return getBooleanValues(values, DEFAULT_BOOLEAN_VALUES); }
public boolean[] getBooleanValues(java.lang.Object value) { return GetterUtil.getBooleanValues(value); }
public boolean[] getBooleanValues(java.lang.String[] values) { return GetterUtil.getBooleanValues(values); }
/** * Returns the Object value as a boolean array. If the value is * <code>null</code>, the default value is returned. In the returned array, * each value element that is <code>null</code> is replaced by a default * value, and each value element that does not match a {@link #BOOLEANS} * value is replaced with <code>false</code>. * * @param value the value to convert * @param defaultValue a default value * @return the value as a boolean array */ public static boolean[] getBooleanValues( Object value, boolean[] defaultValue) { if (value instanceof String[]) { return getBooleanValues((String[])value, defaultValue); } if (value instanceof boolean[]) { return (boolean[])value; } return defaultValue; }
/** * Returns the request parameter value as a boolean array. In the returned * array, each parameter value not convertible to a boolean is replaced by * the default value. * * @param request the servlet request from which to read the parameter * @param param the name of the parameter * @param defaultValue a default value * @return the request parameter value as a boolean array */ public static boolean[] getBooleanValues( HttpServletRequest request, String param, boolean[] defaultValue) { return GetterUtil.getBooleanValues( getParameterValues(request, param, null), defaultValue); }
/** * Returns the portlet request parameter value as a boolean array. In the * returned array, each parameter value not convertible to a boolean is * replaced by the default value. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @param defaultValue a default value * @return the portlet request parameter value as a boolean array */ public static boolean[] getBooleanValues( PortletRequest portletRequest, String param, boolean[] defaultValue) { return GetterUtil.getBooleanValues( getParameterValues(portletRequest, param, null), defaultValue); }
/** * Returns the service context parameter value as a boolean array. In the * returned array, each parameter value not convertible to a boolean is * replaced by the default value. * * @param serviceContext the service context from which to read the * parameter * @param param the name of the parameter * @param defaultValue a default value * @return the service context parameter value as a boolean array */ public static boolean[] getBooleanValues( ServiceContext serviceContext, String param, boolean[] defaultValue) { return GetterUtil.getBooleanValues( serviceContext.getAttribute(param), defaultValue); }
public boolean[] getBooleanValues(java.lang.String[] values, boolean[] defaultValue) { return GetterUtil.getBooleanValues(values, defaultValue); }
public boolean[] getBooleanValues(java.lang.String[] values) { return GetterUtil.getBooleanValues(values); }
public static boolean[] getBooleanValues(String[] values) { return getBooleanValues(values, DEFAULT_BOOLEAN_VALUES); }
public static boolean[] getBooleanValues( HttpServletRequest request, String param, boolean[] defaultValue) { return GetterUtil.getBooleanValues( request.getParameterValues(param), defaultValue); }
public static boolean[] getBooleanValues( PortletRequest portletRequest, String param, boolean[] defaultValue) { return GetterUtil.getBooleanValues( portletRequest.getParameterValues(param), defaultValue); }
return GetterUtil.getBooleanValues(attribute);
return GetterUtil.getBooleanValues(StringUtil.split(attribute));