com.taco.text
Class StringToPatternConverter

java.lang.Object
  extended by com.taco.text.AbstractStringToObjectConverter
      extended by com.taco.text.StringToPatternConverter
All Implemented Interfaces:
IStringToObjectConverter, IObjectMapper, java.io.Serializable

public final class StringToPatternConverter
extends AbstractStringToObjectConverter
implements java.io.Serializable

An implementation of IStringToObjectConverter that converts a double-quoted regex string into an instance of Pattern.

See Also:
Serialized Form

Field Summary
static StringToPatternConverter instance
          The singleton instance of this class.
 
Method Summary
 java.lang.Object toObject(java.lang.String s)
           
 
Methods inherited from class com.taco.text.AbstractStringToObjectConverter
map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final StringToPatternConverter instance
The singleton instance of this class.

Method Detail

toObject

public java.lang.Object toObject(java.lang.String s)
                          throws java.text.ParseException
Specified by:
toObject in interface IStringToObjectConverter
Throws:
java.text.ParseException