net.sourceforge.argval
Interface ConfigurationManager

All Known Implementing Classes:
PropertiesConfigurationManager

public interface ConfigurationManager


Field Summary
static String PROP_ARG_VAL
          The base property key for all property keys related to this class.
static String PROP_ARG_VAL_DATE_FORMAT
           
static String PROP_ARG_VAL_PATTERN
           
static String PROP_ARG_VAL_PATTERNS
          Under this property key name, all the pattern names should be added.
static String PROP_POSTFIX_PATTERN
           
static String PROP_POSTFIX_REG_EXP
          This postfix key is used to get the regular expression of each pattern name.
 
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)
           
 

Field Detail

PROP_ARG_VAL

static final String PROP_ARG_VAL
The base property key for all property keys related to this class.

See Also:
Constant Field Values

PROP_ARG_VAL_PATTERNS

static final String PROP_ARG_VAL_PATTERNS
Under this property key name, all the pattern names should be added. By default a space is used to separate the pattern names. An example:
 argument_validation.patterns = number telephone_number
 

See Also:
PROP_POSTFIX_REG_EXP, Constant Field Values

PROP_ARG_VAL_PATTERN

static final String PROP_ARG_VAL_PATTERN
See Also:
Constant Field Values

PROP_ARG_VAL_DATE_FORMAT

static final String PROP_ARG_VAL_DATE_FORMAT
See Also:
Constant Field Values

PROP_POSTFIX_REG_EXP

static final String PROP_POSTFIX_REG_EXP
This postfix key is used to get the regular expression of each pattern name. An example:
 argument_validation.number.regexp = ^[0-9]+$
 argument_validation.telephone_number.regexp = .... 
 

See Also:
PROP_ARG_VAL_PATTERNS, Constant Field Values

PROP_POSTFIX_PATTERN

static final String PROP_POSTFIX_PATTERN
See Also:
Constant Field Values
Method Detail

createPatternProperties

Properties createPatternProperties(Map<String,String> patternMap)
Parameters:
patternMap -
Returns:

createPatternMapOldSchool

Map<String,String> createPatternMapOldSchool(Properties properties)

createPatternMap

Map<String,String> createPatternMap(Properties properties)
argument_validation.pattern[number].regexp = ^[0-9]+$ argument_validation.pattern[telephone_number].regexp = ....

Parameters:
properties -
Returns:

createDateFormatMap

Map<String,String> createDateFormatMap(Properties properties)


Copyright © 2013 Verhagen Software. All Rights Reserved.