Examples of ValidatorConfig


Examples of com.intellij.struts2.dom.validator.config.ValidatorConfig

    if (o instanceof Field) {
      return ((Field) o).getName().getStringValue();
    }

    if (o instanceof FieldValidator) {
      final ValidatorConfig validatorConfig = ((FieldValidator) o).getType().getValue();
      return validatorConfig != null ? validatorConfig.getName().getStringValue() : null;
    }

    if (o instanceof Message) {
      final String key = ((Message) o).getKey().getStringValue();
      return StringUtil.isNotEmpty(key) ? key : ((Message) o).getValue();
View Full Code Here

Examples of com.intellij.struts2.dom.validator.config.ValidatorConfig

*/
public abstract class FieldValidatorImpl implements FieldValidator {

  @Nullable
  public PsiClass getParamsClass() {
    final ValidatorConfig validatorConfig = getType().getValue();
    return validatorConfig != null ? validatorConfig.getValidatorClass().getValue() : null;
  }
View Full Code Here

Examples of com.intellij.struts2.dom.validator.config.ValidatorConfig

*/
public abstract class ValidatorImpl implements Validator {

  @Nullable
  public PsiClass getParamsClass() {
    final ValidatorConfig validatorConfig = getType().getValue();
    return validatorConfig != null ? validatorConfig.getValidatorClass().getValue() : null;
  }
View Full Code Here

Examples of com.sun.facelets.tag.jsf.ValidatorConfig

        }
       
        public TagHandler createHandler(TagConfig cfg) throws FacesException,
        ELException {
            try {
                ValidatorConfig ccfg = new ValidatorConfigWrapper(cfg,
                        this.validatorId);
                return (TagHandler) this.constructor
                        .newInstance(new Object[] { ccfg });
            } catch (InvocationTargetException e) {
                throw new FaceletException(e.getCause().getMessage(), e.getCause().getCause());
View Full Code Here

Examples of com.sun.facelets.tag.jsf.ValidatorConfig

        }
       
        public TagHandler createHandler(TagConfig cfg) throws FacesException,
        ELException {
            try {
                ValidatorConfig ccfg = new ValidatorConfigWrapper(cfg,
                        this.validatorId);
                return (TagHandler) this.constructor
                        .newInstance(new Object[] { ccfg });
            } catch (InvocationTargetException e) {
                throw new FaceletException(e.getCause().getMessage(), e.getCause().getCause());
View Full Code Here

Examples of com.sun.facelets.tag.jsf.ValidatorConfig

        }
       
        public TagHandler createHandler(TagConfig cfg) throws FacesException,
        ELException {
            try {
                ValidatorConfig ccfg = new ValidatorConfigWrapper(cfg,
                        this.validatorId);
                return (TagHandler) this.constructor
                        .newInstance(new Object[] { ccfg });
            } catch (InvocationTargetException e) {
                throw new FaceletException(e.getCause().getMessage(), e.getCause().getCause());
View Full Code Here

Examples of de.odysseus.calyxo.forms.conf.ValidatorConfig

    }
  }

  private ValidatorBase create(ValidateConfig validateConfig) {
    ValidatorBase base = null;
    ValidatorConfig validatorConfig = validateConfig.getValidatorConfig();
    try {
      base = (ValidatorBase)loader.loadClass(validatorConfig.getType()).newInstance();
    } catch (Exception e) {
      log.error("Could not create " + validatorConfig.getType() + " instance", e);
      return null;
    }

    Iterator propertyConfigs = null;
    propertyConfigs = validatorConfig.getValidatorPropertyConfigs();
    while (propertyConfigs.hasNext()) {
      ValidatorPropertyConfig property = (ValidatorPropertyConfig)propertyConfigs.next();
      if (property.isDefined()) {
        init(property, base);
      }
View Full Code Here

Examples of javax.faces.view.facelets.ValidatorConfig

        public TagHandler createHandler(TagConfig cfg) throws FacesException, ELException
        {
            try
            {
                ValidatorConfig ccfg = new ValidatorConfigWrapper(cfg, validatorId);
                return constructor.newInstance(new Object[] { ccfg });
            }
            catch (InvocationTargetException e)
            {
                throw new FaceletException(e.getCause().getMessage(), e.getCause().getCause());
View Full Code Here

Examples of javax.faces.view.facelets.ValidatorConfig

        public TagHandler createHandler(TagConfig cfg) throws FacesException, ELException
        {
            try
            {
                ValidatorConfig ccfg = new ValidatorConfigWrapper(cfg, validatorId);
                return constructor.newInstance(new Object[] { ccfg });
            }
            catch (InvocationTargetException e)
            {
                throw new FaceletException(e.getCause().getMessage(), e.getCause().getCause());
View Full Code Here

Examples of javax.faces.view.facelets.ValidatorConfig

        public TagHandler createHandler(TagConfig cfg) throws FacesException, ELException
        {
            try
            {
                ValidatorConfig ccfg = new ValidatorConfigWrapper(cfg, validatorId);
                return constructor.newInstance(new Object[] { ccfg });
            }
            catch (InvocationTargetException e)
            {
                throw new FaceletException(e.getCause().getMessage(), e.getCause().getCause());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.