Class AbstractDateBean<T>
java.lang.Object
ch.tocco.nice2.templating.spi.freemarker.bean.AbstractNullableBean<T>
ch.tocco.nice2.templating.spi.freemarker.bean.AbstractDateBean<T>
- All Implemented Interfaces:
NullableBean
- Direct Known Subclasses:
DateTimeBean,LocalDateBean,LocalTimeBean
This abstract class serves as a base class for date beans to represent date objects in freemarker
-
Field Summary
Fields inherited from class ch.tocco.nice2.templating.spi.freemarker.bean.AbstractNullableBean
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringformat(org.joda.time.format.DateTimeFormatter formatter) Format the underlyingLocalDate,DateTimeorLocalTimeusing a pattern.protected abstract Stringprint(org.joda.time.format.DateTimeFormatter formatter) printInstant(org.joda.time.format.DateTimeFormatter formatter) printPartial(org.joda.time.format.DateTimeFormatter formatter) Format the underlyingLocalDate,DateTimeorLocalTimeusing a style.Methods inherited from class ch.tocco.nice2.templating.spi.freemarker.bean.AbstractNullableBean
getDelegate, isNull, or, strict
-
Constructor Details
-
AbstractDateBean
-
-
Method Details
-
print
-
pattern
Format the underlyingLocalDate,DateTimeorLocalTimeusing a pattern. SeeDateTimeFormat.forPattern(String)for more information on how to define a pattern. -
style
Format the underlyingLocalDate,DateTimeorLocalTimeusing a style. SeeDateTimeFormat.forStyle(String)for more information on how to define a style. -
format
-
printPartial
-
printInstant
-