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 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 AbstractNullableBean
getDelegate, isNull, or, strict
-
Constructor Details
-
AbstractDateBean
-
-
Method Details
-
print
-
pattern
-
style
-
format
-
printPartial
-
printInstant
-