Examples of MatchConfig


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

    FormsRootConfig config = parser.parse(inputs);
    FormConfig form = config.findFormConfig("LoginForm", null);
    FieldConfig field = form.getFieldConfig("password");
    Iterator matchers = field.getMatchConfigs();

    MatchConfig notEmpty = (MatchConfig)matchers.next();
    assertEquals("notEmpty", notEmpty.getMatcherConfig().getId());

    MatchConfig regexp = (MatchConfig)matchers.next();
    assertEquals("regexp", regexp.getMatcherConfig().getId());
    PropertyConfig pattern = (PropertyConfig)regexp.getPropertyConfigs().next()
    assertEquals("pattern", pattern.getName());
    assertEquals("^\\w*$", pattern.getValue());
  }
View Full Code Here

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

  public ValidatorSequence(Factory factory, ValidateSequenceConfig config, Locale locale) {
    super();

    Iterator matchConfigs = config.getMatchConfigs();
    while (matchConfigs.hasNext()) {
      MatchConfig matchConfig = (MatchConfig)matchConfigs.next();
      validators.add(factory.getValidator(matchConfig, locale));
    }
    ConvertConfig convertConfig = config.getConvertConfig();
    if (convertConfig != null) {
      Validator validator = factory.getValidator(convertConfig, locale);
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.