Class BeanProperties

java.lang.Object
org.csveed.bean.BeanProperties
All Implemented Interfaces:
Iterable<BeanProperty>

public class BeanProperties extends Object implements Iterable<BeanProperty>
The Class BeanProperties.
  • Constructor Details

    • BeanProperties

      public BeanProperties(Class beanClass)
      Instantiates a new bean properties.
      Parameters:
      beanClass - the bean class
  • Method Details

    • setRequired

      public void setRequired(String propertyName, boolean required)
      Sets the required.
      Parameters:
      propertyName - the property name
      required - the required
    • setDate

      public void setDate(String propertyName, String formatText)
      Sets the date.
      Parameters:
      propertyName - the property name
      formatText - the format text
    • setLocalizedNumber

      public void setLocalizedNumber(String propertyName, Locale locale)
      Sets the localized number.
      Parameters:
      propertyName - the property name
      locale - the locale
    • setConverter

      public void setConverter(String propertyName, Converter converter)
      Sets the converter.
      Parameters:
      propertyName - the property name
      converter - the converter
    • removeFromColumnIndex

      protected void removeFromColumnIndex(BeanProperty property)
      Removes the from column index.
      Parameters:
      property - the property
    • removeFromColumnName

      protected void removeFromColumnName(BeanProperty property)
      Removes the from column name.
      Parameters:
      property - the property
    • ignoreProperty

      public void ignoreProperty(String propertyName)
      Ignore property.
      Parameters:
      propertyName - the property name
    • setHeaderValueProperty

      public void setHeaderValueProperty(String propertyName)
      Sets the header value property.
      Parameters:
      propertyName - the new header value property
    • setHeaderNameProperty

      public void setHeaderNameProperty(String propertyName)
      Sets the header name property.
      Parameters:
      propertyName - the new header name property
    • getHeaderValueProperty

      public BeanProperty getHeaderValueProperty()
      Gets the header value property.
      Returns:
      the header value property
    • getHeaderNameProperty

      public BeanProperty getHeaderNameProperty()
      Gets the header name property.
      Returns:
      the header name property
    • mapIndexToProperty

      public void mapIndexToProperty(int columnIndex, String propertyName)
      Map index to property.
      Parameters:
      columnIndex - the column index
      propertyName - the property name
    • mapNameToProperty

      public void mapNameToProperty(String columnName, String propertyName)
      Map name to property.
      Parameters:
      columnName - the column name
      propertyName - the property name
    • get

      protected BeanProperty get(String propertyName)
      Gets the.
      Parameters:
      propertyName - the property name
      Returns:
      the bean property
    • fromIndex

      public BeanProperty fromIndex(Column column)
      From index.
      Parameters:
      column - the column
      Returns:
      the bean property
    • fromName

      public BeanProperty fromName(Column column)
      From name.
      Parameters:
      column - the column
      Returns:
      the bean property
    • iterator

      public Iterator<BeanProperty> iterator()
      Specified by:
      iterator in interface Iterable<BeanProperty>
    • columnIndexKeys

      public Set<Column> columnIndexKeys()
      Column index keys.
      Returns:
      the sets the
    • columnNameKeys

      public Set<Column> columnNameKeys()
      Column name keys.
      Returns:
      the sets the