| java.lang.Object org.springframework.binding.convert.support.AbstractConverter
All known Subclasses: org.springframework.binding.convert.support.ConversionServiceAwareConverter, org.springframework.webflow.engine.builder.TextToTransitionCriteria, org.springframework.binding.convert.support.TextToExpression, org.springframework.binding.convert.support.TextToBoolean, org.springframework.webflow.engine.builder.TextToTargetStateResolver, org.springframework.binding.convert.support.NoOpConverter, org.springframework.binding.convert.support.TextToLabeledEnum, org.springframework.binding.convert.support.AbstractFormattingConverter,
AbstractConverter | abstract public class AbstractConverter implements Converter(Code) | | Base class for converters provided as a convenience to implementors.
author: Keith Donald |
convert | public Object convert(Object source) throws ConversionException(Code) | | Convenience convert method that converts the provided source to the first
target object supported by this converter. Useful when a converter only
supports conversion to a single target.
Parameters: source - the source to convert the converted object throws: ConversionException - an exception occured converting the sourcevalue |
convert | public Object convert(Object source, Class targetClass) throws ConversionException(Code) | | Convenience convert method that converts the provided source to the
target class specified with an empty conversion context.
Parameters: source - the source to convert Parameters: targetClass - the target class to convert the source to, must be oneof the supported targetClasses the converted object throws: ConversionException - an exception occured converting the sourcevalue |
convert | public Object convert(Object source, ConversionContext context) throws ConversionException(Code) | | Convenience convert method that converts the provided source to the first
target object supported by this converter. Useful when a converter only
supports conversion to a single target.
Parameters: source - the source to convert Parameters: context - the conversion context, useful for influencing thebehavior of the converter the converted object throws: ConversionException - an exception occured converting the sourcevalue |
doConvert | abstract protected Object doConvert(Object source, Class targetClass, ConversionContext context) throws Exception(Code) | | Template method subclasses should override to actually perform the type
conversion.
Parameters: source - the source to convert from Parameters: targetClass - the target type to convert to Parameters: context - an optional conversion context that may be used toinfluence the conversion process, could be null the converted source value throws: Exception - an exception occured, will be wrapped in a conversionexception if necessary |
|
|