java.lang.Object
org.csveed.bean.BeanProperties
- All Implemented Interfaces:
Iterable<BeanProperty>
The Class BeanProperties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionColumn index keys.Column name keys.From index.From name.protected BeanPropertyGets the.Gets the header name property.Gets the header value property.voidignoreProperty(String propertyName) Ignore property.iterator()voidmapIndexToProperty(int columnIndex, String propertyName) Map index to property.voidmapNameToProperty(String columnName, String propertyName) Map name to property.protected voidremoveFromColumnIndex(BeanProperty property) Removes the from column index.protected voidremoveFromColumnName(BeanProperty property) Removes the from column name.voidsetConverter(String propertyName, Converter converter) Sets the converter.voidSets the date.voidsetHeaderNameProperty(String propertyName) Sets the header name property.voidsetHeaderValueProperty(String propertyName) Sets the header value property.voidsetLocalizedNumber(String propertyName, Locale locale) Sets the localized number.voidsetRequired(String propertyName, boolean required) Sets the required.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
BeanProperties
Instantiates a new bean properties.- Parameters:
beanClass- the bean class
-
-
Method Details
-
setRequired
Sets the required.- Parameters:
propertyName- the property namerequired- the required
-
setDate
Sets the date.- Parameters:
propertyName- the property nameformatText- the format text
-
setLocalizedNumber
Sets the localized number.- Parameters:
propertyName- the property namelocale- the locale
-
setConverter
Sets the converter.- Parameters:
propertyName- the property nameconverter- the converter
-
removeFromColumnIndex
Removes the from column index.- Parameters:
property- the property
-
removeFromColumnName
Removes the from column name.- Parameters:
property- the property
-
ignoreProperty
Ignore property.- Parameters:
propertyName- the property name
-
setHeaderValueProperty
Sets the header value property.- Parameters:
propertyName- the new header value property
-
setHeaderNameProperty
Sets the header name property.- Parameters:
propertyName- the new header name property
-
getHeaderValueProperty
Gets the header value property.- Returns:
- the header value property
-
getHeaderNameProperty
Gets the header name property.- Returns:
- the header name property
-
mapIndexToProperty
Map index to property.- Parameters:
columnIndex- the column indexpropertyName- the property name
-
mapNameToProperty
Map name to property.- Parameters:
columnName- the column namepropertyName- the property name
-
get
Gets the.- Parameters:
propertyName- the property name- Returns:
- the bean property
-
fromIndex
From index.- Parameters:
column- the column- Returns:
- the bean property
-
fromName
From name.- Parameters:
column- the column- Returns:
- the bean property
-
iterator
- Specified by:
iteratorin interfaceIterable<BeanProperty>
-
columnIndexKeys
Column index keys.- Returns:
- the sets the
-
columnNameKeys
Column name keys.- Returns:
- the sets the
-