/** * If {@link #isIgnoreUnknownProperties()} returns true, make sure that * every non-ignored ({@see #addIgnoreProperty(String)}) property * matches a writable property on the target bean. * @param bean the bean to validate * @param attributes the list of properties to validate * @throws JellyTagException when a property is not writeable */ protected void validateBeanProperties(Object bean, Map attributes) throws JellyTagException { if (!isIgnoreUnknownProperties()) { for (Iterator i=attributes.keySet().iterator();i.hasNext();) { String attrName = (String)i.next(); if (! PropertyUtils.isWriteable(bean, attrName)) { throw new JellyTagException("No bean property found: " + attrName); } } } }
/** * If {@link #isIgnoreUnknownProperties()} returns true, make sure that * every non-ignored ({@see #addIgnoreProperty(String)}) property * matches a writable property on the target bean. * @param bean the bean to validate * @param attributes the list of properties to validate * @throws JellyTagException when a property is not writeable */ protected void validateBeanProperties(Object bean, Map attributes) throws JellyTagException { if (!isIgnoreUnknownProperties()) { for (Iterator i=attributes.keySet().iterator();i.hasNext();) { String attrName = (String)i.next(); if (! PropertyUtils.isWriteable(bean, attrName)) { throw new JellyTagException("No bean property found: " + attrName); } } } }
/** * If {@link #isIgnoreUnknownProperties()} returns true, make sure that * every non-ignored ({@see #addIgnoreProperty(String)}) property * matches a writable property on the target bean. * @param bean the bean to validate * @param attributes the list of properties to validate * @throws JellyTagException when a property is not writeable */ protected void validateBeanProperties(Object bean, Map attributes) throws JellyTagException { if (!isIgnoreUnknownProperties()) { for (Iterator i=attributes.keySet().iterator();i.hasNext();) { String attrName = (String)i.next(); if (! PropertyUtils.isWriteable(bean, attrName)) { throw new JellyTagException("No bean property found: " + attrName); } } } }
/** * If {@link #isIgnoreUnknownProperties()} returns true, make sure that * every non-ignored ({@see #addIgnoreProperty(String)}) property * matches a writable property on the target bean. * @param bean the bean to validate * @param attributes the list of properties to validate * @throws JellyTagException when a property is not writeable */ protected void validateBeanProperties(Object bean, Map attributes) throws JellyTagException { if (!isIgnoreUnknownProperties()) { for (Iterator i=attributes.keySet().iterator();i.hasNext();) { String attrName = (String)i.next(); if (! PropertyUtils.isWriteable(bean, attrName)) { throw new JellyTagException("No bean property found: " + attrName); } } } }