/** * Adds a name to the Set of property names that will be skipped when setting * bean properties. In other words, names added here won't be set into the bean * if they're present in the attribute Map. * @param name */ protected void addIgnoreProperty(String name) { getIgnorePropertySet().add(name); }
/** * Adds a name to the Set of property names that will be skipped when setting * bean properties. In other words, names added here won't be set into the bean * if they're present in the attribute Map. * @param name */ protected void addIgnoreProperty(String name) { getIgnorePropertySet().add(name); }
/** * Adds a name to the Set of property names that will be skipped when setting * bean properties. In other words, names added here won't be set into the bean * if they're present in the attribute Map. * @param name */ protected void addIgnoreProperty(String name) { getIgnorePropertySet().add(name); }
/** * Adds a name to the Set of property names that will be skipped when setting * bean properties. In other words, names added here won't be set into the bean * if they're present in the attribute Map. * @param name */ protected void addIgnoreProperty(String name) { getIgnorePropertySet().add(name); }
/** * Sets the properties on the bean. Derived tags could implement some custom * type conversion etc. * <p/> * This method ignores all property names in the Set returned by {@link #getIgnorePropertySet()}. */ protected void setBeanProperties(Object bean, Map attributes) throws JellyTagException { Map attrsToUse = new HashMap(attributes); attrsToUse.keySet().removeAll(getIgnorePropertySet()); validateBeanProperties(bean, attrsToUse); try { BeanUtils.populate(bean, attrsToUse); } catch (IllegalAccessException e) { throw new JellyTagException("could not set the properties of the bean",e); } catch (InvocationTargetException e) { throw new JellyTagException("could not set the properties of the bean",e); } }
/** * Sets the properties on the bean. Derived tags could implement some custom * type conversion etc. * <p/> * This method ignores all property names in the Set returned by {@link #getIgnorePropertySet()}. */ protected void setBeanProperties(Object bean, Map attributes) throws JellyTagException { Map attrsToUse = new HashMap(attributes); attrsToUse.keySet().removeAll(getIgnorePropertySet()); validateBeanProperties(bean, attrsToUse); try { BeanUtils.populate(bean, attrsToUse); } catch (IllegalAccessException e) { throw new JellyTagException("could not set the properties of the bean",e); } catch (InvocationTargetException e) { throw new JellyTagException("could not set the properties of the bean",e); } }
/** * Sets the properties on the bean. Derived tags could implement some custom * type conversion etc. * <p/> * This method ignores all property names in the Set returned by {@link #getIgnorePropertySet()}. */ protected void setBeanProperties(Object bean, Map attributes) throws JellyTagException { Map attrsToUse = new HashMap(attributes); attrsToUse.keySet().removeAll(getIgnorePropertySet()); validateBeanProperties(bean, attrsToUse); try { BeanUtils.populate(bean, attrsToUse); } catch (IllegalAccessException e) { throw new JellyTagException("could not set the properties of the bean",e); } catch (InvocationTargetException e) { throw new JellyTagException("could not set the properties of the bean",e); } }
/** * Sets the properties on the bean. Derived tags could implement some custom * type conversion etc. * <p/> * This method ignores all property names in the Set returned by {@link #getIgnorePropertySet()}. */ protected void setBeanProperties(Object bean, Map attributes) throws JellyTagException { Map attrsToUse = new HashMap(attributes); attrsToUse.keySet().removeAll(getIgnorePropertySet()); validateBeanProperties(bean, attrsToUse); try { BeanUtils.populate(bean, attrsToUse); } catch (IllegalAccessException e) { throw new JellyTagException("could not set the properties of the bean",e); } catch (InvocationTargetException e) { throw new JellyTagException("could not set the properties of the bean",e); } }