org.broadleafcommerce.openadmin.web.rulebuilder
Class RuleBuilderFormatUtil

java.lang.Object
  extended by org.broadleafcommerce.openadmin.web.rulebuilder.RuleBuilderFormatUtil

public class RuleBuilderFormatUtil
extends Object

Work with dates in rule builder mvel

Author:
Jeff Fischer

Field Summary
static String COMPATIBILITY_FORMAT
           
static String DATE_FORMAT
           
 
Constructor Summary
RuleBuilderFormatUtil()
           
 
Method Summary
static String formatDate(Date date)
          Prepare date for display in the admin
static Date parseDate(String date)
          Parse the string value of the date stored in mvel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPATIBILITY_FORMAT

public static final String COMPATIBILITY_FORMAT
See Also:
Constant Field Values

DATE_FORMAT

public static final String DATE_FORMAT
See Also:
Constant Field Values
Constructor Detail

RuleBuilderFormatUtil

public RuleBuilderFormatUtil()
Method Detail

formatDate

public static String formatDate(Date date)
Prepare date for display in the admin

Parameters:
date - the date to convert
Returns:
the string value to show in the admin

parseDate

public static Date parseDate(String date)
                      throws ParseException
Parse the string value of the date stored in mvel

Parameters:
date - the mvel date value
Returns:
the parsed Date instance
Throws:
ParseException


Copyright © 2013. All Rights Reserved.