org.broadleafcommerce.openadmin.server.service.persistence.module
Interface DataFormatProvider

All Known Subinterfaces:
RecordHelper
All Known Implementing Classes:
AdornedTargetListPersistenceModule, BasicPersistenceModule, MapStructurePersistenceModule

public interface DataFormatProvider

Author:
Jeff Fischer
See Also:
BasicPersistenceModule}

Method Summary
 String formatValue(Object value)
          Formats a aw value from an entity into its string representation used by the system.
 DecimalFormat getDecimalFormatter()
           
 SimpleDateFormat getSimpleDateFormatter()
           
 

Method Detail

getSimpleDateFormatter

SimpleDateFormat getSimpleDateFormatter()

getDecimalFormatter

DecimalFormat getDecimalFormatter()

formatValue

String formatValue(Object value)
Formats a aw value from an entity into its string representation used by the system. For instance, this might use the getDecimalFormatter() to ensure that BigDecimals only show 2 decimal places or dates are formatted a certain way.

Parameters:
value -
Returns:


Copyright © 2013. All Rights Reserved.