java.lang.Object
org.csveed.bean.conversion.BeanWrapper
The Class BeanWrapper.
-
Constructor Summary
ConstructorsConstructorDescriptionBeanWrapper(DefaultConverters defaultConverters, Object bean) Instantiates a new bean wrapper. -
Method Summary
Modifier and TypeMethodDescriptionprotected ConvertergetConverter(BeanProperty property) Gets the converter.getProperty(BeanProperty property) Gets the property.protected ClassgetPropertyType(BeanProperty property) Gets the property type.voidsetProperty(BeanProperty property, String value) Sets the property.
-
Constructor Details
-
BeanWrapper
Instantiates a new bean wrapper.- Parameters:
defaultConverters- the default convertersbean- the bean
-
-
Method Details
-
getProperty
Gets the property.- Parameters:
property- the property- Returns:
- the property
- Throws:
ConversionException- the conversion exception
-
setProperty
Sets the property.- Parameters:
property- the propertyvalue- the value- Throws:
ConversionException- the conversion exception
-
getConverter
Gets the converter.- Parameters:
property- the property- Returns:
- the converter
-
getPropertyType
Gets the property type.- Parameters:
property- the property- Returns:
- the property type
-