/** * {@inheritDoc} */ public BeanPropertySetterRule get() { return new BeanPropertySetterRule(this.name); }
/** * Process the body text of this element. * * @param namespace the namespace URI of the matching element, or an * empty string if the parser is not namespace aware or the element has * no namespace * @param name the local name if the parser is namespace aware, or just * the element name otherwise * @param text The text of the body of this element */ public void body(String namespace, String name, String text) throws Exception { super.body(namespace, name, text); this.bodyText = getConstantValue(bodyText); }
super.end(namespace, name);
/** * Process the body text of this element. * * @param namespace the namespace URI of the matching element, or an * empty string if the parser is not namespace aware or the element has * no namespace * @param name the local name if the parser is namespace aware, or just * the element name otherwise * @param text The text of the body of this element */ public void body(String namespace, String name, String text) throws Exception { super.body(namespace, name, text); this.bodyText = getConstantValue(bodyText); }
@Override public Object createObject(Attributes attributes) throws Exception { Rule beanPropertySetterRule = null; String propertyname = attributes.getValue("propertyname"); if (propertyname == null) { // call the setter method corresponding to the element name. beanPropertySetterRule = new BeanPropertySetterRule(); } else { beanPropertySetterRule = new BeanPropertySetterRule(propertyname); } return beanPropertySetterRule; }
/** * Add a "bean property setter" rule for the specified parameters. * * @param pattern Element matching pattern * @see BeanPropertySetterRule */ public void addBeanPropertySetter(String pattern) { addRule(pattern, new BeanPropertySetterRule()); }
/** * Add a "bean property setter" rule for the specified parameters. * * @param pattern Element matching pattern * @param propertyName Name of property to set * @see BeanPropertySetterRule */ public void addBeanPropertySetter(String pattern, String propertyName) { addRule(pattern, new BeanPropertySetterRule(propertyName)); }
public Object createObject(Attributes attributes) throws Exception { Rule beanPropertySetterRule = null; String propertyname = attributes.getValue("propertyname"); if (propertyname == null) { // call the setter method corresponding to the element name. beanPropertySetterRule = new BeanPropertySetterRule(); } else { beanPropertySetterRule = new BeanPropertySetterRule(propertyname); } return beanPropertySetterRule; }
/** * Add a "bean property setter" rule for the specified parameters. * * @param pattern Element matching pattern * @see BeanPropertySetterRule */ public void addBeanPropertySetter(String pattern) { addRule(pattern, new BeanPropertySetterRule()); }
/** * Add a "bean property setter" rule for the specified parameters. * * @param pattern Element matching pattern * @param propertyName Name of property to set * @see BeanPropertySetterRule */ public void addBeanPropertySetter(String pattern, String propertyName) { addRule(pattern, new BeanPropertySetterRule(propertyName)); }