Class ConvertObjectsToCSV
java.lang.Object
de.hybris.platform.acceleratorservices.dataexport.generic.output.csv.ConvertObjectsToCSV
- All Implemented Interfaces:
Converter<List<Object>,,String> org.springframework.core.convert.converter.Converter<List<Object>,String>
Class that converts a list of objects to a list of Strings using the Object's annotations.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildClassProperties(Object data) Method that gathers information about the data class and places the information into a ClassAnnotationProperties object.Converts the source object, creating a new instance of the destination typeConvert the source object by filling the prototypegenerateData(List<Object> dataList, ConvertObjectsToCSV.ClassAnnotationProperties classProperties) protected StringgenerateHeader(ConvertObjectsToCSV.ClassAnnotationProperties dataProperties) protected StringworkoutPropertyName(String methodName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.servicelayer.dto.converter.Converter
convertAll, convertAllIgnoreExceptions, getLoggerMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Field Details
-
GETTER
- See Also:
-
SETTER
- See Also:
-
IS
- See Also:
-
INDEX_THREE
public static final int INDEX_THREE- See Also:
-
INDEX_TWO
public static final int INDEX_TWO- See Also:
-
-
Constructor Details
-
ConvertObjectsToCSV
public ConvertObjectsToCSV()
-
-
Method Details
-
convert
Description copied from interface:ConverterConvert the source object by filling the prototype -
convert
Description copied from interface:ConverterConverts the source object, creating a new instance of the destination type -
generateData
protected List<String> generateData(List<Object> dataList, ConvertObjectsToCSV.ClassAnnotationProperties classProperties) -
buildClassProperties
Method that gathers information about the data class and places the information into a ClassAnnotationProperties object.- Parameters:
data-- Returns:
- classProperties
-
workoutPropertyName
-
generateHeader
-