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
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
format
(org.joda.time.format.DateTimeFormatter formatter) Format the underlyingLocalDate
,DateTime
orLocalTime
using a pattern.protected abstract String
print
(org.joda.time.format.DateTimeFormatter formatter) printInstant
(org.joda.time.format.DateTimeFormatter formatter) printPartial
(org.joda.time.format.DateTimeFormatter formatter) Format the underlyingLocalDate
,DateTime
orLocalTime
using 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
,DateTime
orLocalTime
using a pattern. SeeDateTimeFormat.forPattern(String)
for more information on how to define a pattern. -
style
Format the underlyingLocalDate
,DateTime
orLocalTime
using a style. SeeDateTimeFormat.forStyle(String)
for more information on how to define a style. -
format
-
printPartial
-
printInstant
-