FileDocCategorySizeDatePackage
SetAllPropertiesRule.javaAPI DocGlassfish v2 API3175Fri May 04 22:32:30 BST 2007org.apache.catalina.startup

SetAllPropertiesRule

public class SetAllPropertiesRule extends com.sun.org.apache.commons.digester.Rule
Rule that uses the introspection utils to set properties.
author
Remy Maucherat

Fields Summary
Constructors Summary
Methods Summary
public voidbegin(org.xml.sax.Attributes attributes)
Handle the beginning of an XML element.

param
attributes The attributes of this element
exception
Exception if a processing error occurs


        for (int i = 0; i < attributes.getLength(); i++) {
            String name = attributes.getLocalName(i);
            if ("".equals(name)) {
                name = attributes.getQName(i);
            }
            String value = attributes.getValue(i);
            IntrospectionUtils.setProperty(digester.peek(), name, value);
        }