rabbit.util
Class PatternHelper

java.lang.Object
  extended by rabbit.util.PatternHelper

public class PatternHelper
extends Object

Helper class for regular expresions.

Author:
Robert Olofsson

Constructor Summary
PatternHelper()
           
 
Method Summary
 Pattern getPattern(SProperties properties, String configOption, String warn, Logger logger)
          Get a Pattern for a given property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternHelper

public PatternHelper()
Method Detail

getPattern

public Pattern getPattern(SProperties properties,
                          String configOption,
                          String warn,
                          Logger logger)
Get a Pattern for a given property.

Parameters:
properties - the properties to use.
configOption - the property to get.
warn - the warning message to log if construction fails
logger - the Logger to log warnings to.
Returns:
a Pattern or null if no pattern could be created.