Package com.bc.ceres.binding.converters
Class PatternConverter
- java.lang.Object
-
- com.bc.ceres.binding.converters.PatternConverter
-
-
Constructor Summary
Constructors Constructor Description PatternConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat(Pattern value)Converts a value of the type returned byConverter.getValueType()to its plain text representation.Class<Pattern>getValueType()Gets the value type.Patternparse(String text)Converts a value from its plain text representation to a Java object instance of the type returned byConverter.getValueType().
-
-
-
Method Detail
-
getValueType
public Class<Pattern> getValueType()
Description copied from interface:ConverterGets the value type.- Specified by:
getValueTypein interfaceConverter<Pattern>- Returns:
- The value type.
-
parse
public Pattern parse(String text) throws ConversionException
Description copied from interface:ConverterConverts a value from its plain text representation to a Java object instance of the type returned byConverter.getValueType().- Specified by:
parsein interfaceConverter<Pattern>- Parameters:
text- The textual representation of the value.- Returns:
- The converted value.
- Throws:
ConversionException- If the conversion fails.
-
format
public String format(Pattern value)
Description copied from interface:ConverterConverts a value of the type returned byConverter.getValueType()to its plain text representation.
-
-