Class BeanWrapper

java.lang.Object
org.csveed.bean.conversion.BeanWrapper

public class BeanWrapper extends Object
The Class BeanWrapper.
  • Constructor Details

    • BeanWrapper

      public BeanWrapper(DefaultConverters defaultConverters, Object bean)
      Instantiates a new bean wrapper.
      Parameters:
      defaultConverters - the default converters
      bean - the bean
  • Method Details

    • getProperty

      public String getProperty(BeanProperty property) throws ConversionException
      Gets the property.
      Parameters:
      property - the property
      Returns:
      the property
      Throws:
      ConversionException - the conversion exception
    • setProperty

      public void setProperty(BeanProperty property, String value) throws ConversionException
      Sets the property.
      Parameters:
      property - the property
      value - the value
      Throws:
      ConversionException - the conversion exception
    • getConverter

      protected Converter getConverter(BeanProperty property)
      Gets the converter.
      Parameters:
      property - the property
      Returns:
      the converter
    • getPropertyType

      protected Class getPropertyType(BeanProperty property)
      Gets the property type.
      Parameters:
      property - the property
      Returns:
      the property type