All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.feilong.lib.digester3.binder.SetTopBuilder Maven / Gradle / Ivy

Go to download

feilong is a suite of core and expanded libraries that include utility classes, http, excel,cvs, io classes, and much much more.

There is a newer version: 4.3.0
Show newest version
package com.feilong.lib.digester3.binder;

import com.feilong.lib.digester3.SetTopRule;

/**
 * Builder chained when invoking {@link LinkedRuleBuilder#setTop(String)}.
 *
 * @since 3.0
 */
public final class SetTopBuilder extends AbstractParamTypeBuilder{

    SetTopBuilder(String keyPattern, String namespaceURI, RulesBinder mainBinder, LinkedRuleBuilder mainBuilder, String methodName,
                    ClassLoader classLoader){
        super(keyPattern, namespaceURI, mainBinder, mainBuilder, methodName, classLoader);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected SetTopRule createRule(){
        SetTopRule rule;

        if (getParamType() != null){
            rule = new SetTopRule(getMethodName(), getParamType());
        }else{
            rule = new SetTopRule(getMethodName());
        }

        rule.setExactMatch(isUseExactMatch());
        rule.setFireOnBegin(isFireOnBegin());
        return rule;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy