org.richfaces.validator.FacesObjectDescriptor Maven / Gradle / Ivy
package org.richfaces.validator;
import java.util.Map;
import org.richfaces.javascript.Message;
/**
*
* Inmlementations of this interface describe JSF or JSR-303 validators. Because JSF supports 2 types of validators, this
* interface unifies access to them.
*
*
* @author [email protected]
*
*/
public interface FacesObjectDescriptor {
/**
*
* Returns JSF {@link javax.faces.validator.Validator} implementation class or JSR-303 annotation class.
*
*/
Class> getImplementationClass();
/**
*
* Concrete validator parameters
*
*
* @return non null map with validator instance parameters.
*/
Map getAdditionalParameters();
/**
*
* Localized validator message
*
*/
Message getMessage();
}