|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectliquibase.util.csv.opencsv.bean.AbstractCSVToBean
public abstract class AbstractCSVToBean
Converts CSV data to objects.
| Constructor Summary | |
|---|---|
AbstractCSVToBean()
|
|
| Method Summary | |
|---|---|
protected String |
checkForTrim(String s,
PropertyDescriptor prop)
Returns the trimmed value of the string only if the property the string is describing should be trimmed to be converted to that type. |
protected Object |
convertValue(String value,
PropertyDescriptor prop)
Convert a string value to its Object value. |
protected abstract PropertyEditor |
getPropertyEditor(PropertyDescriptor desc)
Attempt to find custom property editor on descriptor first, else try the propery editor manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCSVToBean()
| Method Detail |
|---|
protected abstract PropertyEditor getPropertyEditor(PropertyDescriptor desc)
throws InstantiationException,
IllegalAccessException
desc - - PropertyDescriptor.
InstantiationException - - thrown when getting the PropertyEditor for the class.
IllegalAccessException - - thrown when getting the PropertyEditor for the class.
protected String checkForTrim(String s,
PropertyDescriptor prop)
s - - String describing the value.prop - - property descriptor of the value.
protected Object convertValue(String value,
PropertyDescriptor prop)
throws InstantiationException,
IllegalAccessException
value - - String valueprop - - PropertyDescriptor
InstantiationException - - Thrown on error getting the property editor from the property descriptor.
IllegalAccessException - - Thrown on error getting the property editor from the property descriptor.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||