net.sourceforge.argval.impl
Class PropertiesConfigurationManager

java.lang.Object
  extended by net.sourceforge.argval.impl.PropertiesConfigurationManager
All Implemented Interfaces:
ConfigurationManager

public class PropertiesConfigurationManager
extends Object
implements ConfigurationManager

This ConfigurationManager contains helper methods for the class ArgumentValidationImpl.

Author:
T. Verhagen

Field Summary
 
Fields inherited from interface net.sourceforge.argval.ConfigurationManager
PROP_ARG_VAL, PROP_ARG_VAL_DATE_FORMAT, PROP_ARG_VAL_PATTERN, PROP_ARG_VAL_PATTERNS, PROP_POSTFIX_PATTERN, PROP_POSTFIX_REG_EXP
 
Constructor Summary
PropertiesConfigurationManager()
           
 
Method Summary
 Map<String,String> createDateFormatMap(Properties properties)
           
 Map<String,String> createPatternMap(Properties properties)
          argument_validation.pattern[number].regexp = ^[0-9]+$ argument_validation.pattern[telephone_number].regexp = ....
 Map<String,String> createPatternMapOldSchool(Properties properties)
           
 Properties createPatternProperties(Map<String,String> patternMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesConfigurationManager

public PropertiesConfigurationManager()
Method Detail

createPatternProperties

public Properties createPatternProperties(Map<String,String> patternMap)
Specified by:
createPatternProperties in interface ConfigurationManager
Returns:

createPatternMapOldSchool

public Map<String,String> createPatternMapOldSchool(Properties properties)
Specified by:
createPatternMapOldSchool in interface ConfigurationManager

createPatternMap

public Map<String,String> createPatternMap(Properties properties)
Description copied from interface: ConfigurationManager
argument_validation.pattern[number].regexp = ^[0-9]+$ argument_validation.pattern[telephone_number].regexp = ....

Specified by:
createPatternMap in interface ConfigurationManager
Returns:

createDateFormatMap

public Map<String,String> createDateFormatMap(Properties properties)
Specified by:
createDateFormatMap in interface ConfigurationManager


Copyright © 2013 Verhagen Software. All Rights Reserved.