de.smartics.properties.spi.core.convert
Interface PropertyValueConverter

Package class diagram package PropertyValueConverter
All Superinterfaces:
Serializable
All Known Implementing Classes:
BeanUtilsPropertyValueConverter

public interface PropertyValueConverter
     
     
extends Serializable

Converter of property values to and from Strings.


Method Summary
 Object convert(PropertyDescriptor descriptor, Object value)
          Converts, if necessary, the given value to the target type defined by the descriptor.
 

Method Detail

convert

Object convert(PropertyDescriptor descriptor,
               Object value)
               throws PropertyValueConversionException
Converts, if necessary, the given value to the target type defined by the descriptor.

Parameters:
descriptor - the descriptor of the property.
value - the value to be converted according to the rules defined by the descriptor.
Returns:
the converted value.
Throws:
PropertyValueConversionException - if the value cannot be converted from String to the target type.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.