Package de.odysseus.calyxo.forms.conf

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


    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


      }
    }
    // make sure that all properties exist and are not final
    Iterator propertyConfigs = getPropertyConfigs();
    while (propertyConfigs.hasNext()) {
      PropertyConfig propertyConfig = (PropertyConfig)propertyConfigs.next();
      String name = propertyConfig.getName();
      ValidatorPropertyConfig validatorPropertyConfig =
        validatorConfig.getValidatorPropertyConfig(name);
      if (validatorPropertyConfig == null) {
        throw new ConfigException("Unknown property " + name + " in '" + toInlineString() + "'");
      }
View Full Code Here

        init(property, base);
      }
    }
    propertyConfigs = validateConfig.getPropertyConfigs();
    while (propertyConfigs.hasNext()) {
      PropertyConfig property = (PropertyConfig)propertyConfigs.next();
      init(property, base);
    }

    return base;
  }
View Full Code Here

TOP

Related Classes of de.odysseus.calyxo.forms.conf.PropertyConfig

Copyright © 2018 www.massapicom. 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.