org.apache.commons.convert
Class MiscConverters.StringToRegexPattern

java.lang.Object
  extended by org.apache.commons.convert.AbstractConverter<String,Pattern>
      extended by org.apache.commons.convert.MiscConverters.StringToRegexPattern
All Implemented Interfaces:
Converter<String,Pattern>, ConverterLoader
Enclosing class:
MiscConverters

public static class MiscConverters.StringToRegexPattern
extends AbstractConverter<String,Pattern>

An object that converts a pattern String to a Pattern.


Constructor Summary
MiscConverters.StringToRegexPattern()
           
 
Method Summary
 Pattern convert(String obj)
          Converts obj to T.
 
Methods inherited from class org.apache.commons.convert.AbstractConverter
canConvert, getSourceClass, getTargetClass, loadConverters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiscConverters.StringToRegexPattern

public MiscConverters.StringToRegexPattern()
Method Detail

convert

public Pattern convert(String obj)
                throws ConversionException
Description copied from interface: Converter
Converts obj to T.

Parameters:
obj - The source Object to convert
Returns:
The converted Object
Throws:
ConversionException


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.