org.springframework.roo.addon.web.mvc.controller.details
Class DateTimeFormatDetails

java.lang.Object
  extended by org.springframework.roo.addon.web.mvc.controller.details.DateTimeFormatDetails

public class DateTimeFormatDetails
extends Object

Simple detail holder for date formats.

Since:
1.1.2
Author:
Rossen Stoyanchev

Field Summary
 String pattern
           
 String style
           
 
Constructor Summary
DateTimeFormatDetails()
           
 
Method Summary
 String toString()
           
static DateTimeFormatDetails withPattern(String pattern)
          Factory method for a DateTimeFormatDetails with the given pattern
static DateTimeFormatDetails withStyle(String style)
          Factory method for a DateTimeFormatDetails with the given style
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pattern

public String pattern

style

public String style
Constructor Detail

DateTimeFormatDetails

public DateTimeFormatDetails()
Method Detail

withPattern

public static DateTimeFormatDetails withPattern(String pattern)
Factory method for a DateTimeFormatDetails with the given pattern

Parameters:
the - pattern to set (can be null)
Returns:
a non-null instance

withStyle

public static DateTimeFormatDetails withStyle(String style)
Factory method for a DateTimeFormatDetails with the given style

Parameters:
style - the style to set (can be null)
Returns:
a non-null instance

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009–2015. All rights reserved.