wicket.util.convert.converters
Class AbstractConverter
java.lang.Object
wicket.util.convert.converters.AbstractConverter
- All Implemented Interfaces:
- ITypeConverter, java.io.Serializable
- Direct Known Subclasses:
- AbstractNumberConverter, BooleanConverter, CharacterConverter, DateConverter, DateToStringConverter, NumberToStringConverter, StringConverter
- public abstract class AbstractConverter
- extends java.lang.Object
- implements ITypeConverter
Base class for locale aware type converters.
- Author:
- Eelco Hillenius
- See Also:
- Serialized Form
|
Method Summary |
protected abstract java.lang.Class |
getTargetType()
|
protected ConversionException |
newConversionException(java.lang.String message,
java.lang.Object value,
java.util.Locale locale)
Creates a conversion exception for throwing |
protected java.lang.Object |
parse(java.text.Format format,
java.lang.Object value)
Parses a value using one of the java.util.text format classes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractConverter
public AbstractConverter()
parse
protected java.lang.Object parse(java.text.Format format,
java.lang.Object value)
- Parses a value using one of the java.util.text format classes.
- Parameters:
format - The format to usevalue - The object to parse
- Returns:
- The object
- Throws:
ConversionException - Thrown if parsing fails
newConversionException
protected ConversionException newConversionException(java.lang.String message,
java.lang.Object value,
java.util.Locale locale)
- Creates a conversion exception for throwing
- Parameters:
message - The messagevalue - The value that didn't convertlocale - The locale
- Returns:
- The ConversionException
getTargetType
protected abstract java.lang.Class getTargetType()
- Returns:
- The target type of this type converter
Copyright © 2004-2006 Wicket developers. All Rights Reserved.