Package org.springmodules.cache.regex

Examples of org.springmodules.cache.regex.Match


        PROPERTY_DELIMITER);

    int propertyCount = propertiesAsText.length;
    for (int i = 0; i < propertyCount; i++) {
      String property = propertiesAsText[i];
      Match match = KEY_VALUE_REGEX.match(property);

      if (!match.isSuccessful()) {
        String message = "The String " + StringUtils.quote(property)
            + " should match the regular expression pattern "
            + StringUtils.quote(KEY_VALUE_REGEX.getPattern());
        throw new IllegalArgumentException(message);
      }

      String[] groups = match.getGroups();
      String key = groups[1].trim();
      String value = groups[2].trim();

      if (properties.containsKey(key)) {
        throw new IllegalArgumentException("The property "
View Full Code Here

TOP

Related Classes of org.springmodules.cache.regex.Match

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.