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

org.richfaces.view.facelets.html.SetupValidatorsParameter Maven / Gradle / Ivy

There is a newer version: 4.3.7.Final
Show newest version
package org.richfaces.view.facelets.html;

import java.io.Serializable;

import javax.faces.context.FacesContext;
import javax.faces.validator.Validator;

import org.richfaces.component.AbstractGraphValidator;

@SuppressWarnings("serial")
public class SetupValidatorsParameter implements Serializable {
    private final AbstractGraphValidator graphValidator;
    private final Class defaultValidatorClass;
    private final Class[] groups;

    public SetupValidatorsParameter(AbstractGraphValidator graphValidator, Class defaultValidatorClass, Class[] groups) {
        this.graphValidator = graphValidator;
        this.defaultValidatorClass = defaultValidatorClass;
        this.groups = groups;
    }

    public Validator getValidator() {
        return this.graphValidator.createChildrenValidator();
    }

    public Class getDefaultValidatorClass() {
        return this.defaultValidatorClass;
    }

    public Class[] getGroups() {
        return this.groups;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy