Class AbstractDateTimeTemplateModel
java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.adapters.templatemodel.AbstractDateTimeTemplateModel
- All Implemented Interfaces:
freemarker.template.TemplateHashModel
,freemarker.template.TemplateModel
,freemarker.template.TemplateScalarModel
public abstract class AbstractDateTimeTemplateModel
extends Object
implements freemarker.template.TemplateScalarModel, freemarker.template.TemplateHashModel
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
Fields inherited from interface freemarker.template.TemplateScalarModel
EMPTY_STRING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
format
(org.joda.time.format.DateTimeFormatter formatter) freemarker.template.TemplateModel
abstract org.joda.time.format.DateTimeFormatter
getFieldOperation
(String field) protected abstract Map
<String, AbstractDateTimeTemplateModel.FieldOperation<? extends AbstractDateTimeTemplateModel>> protected abstract freemarker.template.SimpleDate
boolean
isEmpty()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface freemarker.template.TemplateScalarModel
getAsString
-
Constructor Details
-
AbstractDateTimeTemplateModel
public AbstractDateTimeTemplateModel()
-
-
Method Details
-
format
-
getFieldOperation
-
getFieldOperations
protected abstract Map<String,AbstractDateTimeTemplateModel.FieldOperation<? extends AbstractDateTimeTemplateModel>> getFieldOperations() -
getDefaulFormat
public abstract org.joda.time.format.DateTimeFormatter getDefaulFormat() -
getSimpleDate
protected abstract freemarker.template.SimpleDate getSimpleDate() -
get
public freemarker.template.TemplateModel get(String key) throws freemarker.template.TemplateModelException - Specified by:
get
in interfacefreemarker.template.TemplateHashModel
- Throws:
freemarker.template.TemplateModelException
-
isEmpty
public boolean isEmpty() throws freemarker.template.TemplateModelException- Specified by:
isEmpty
in interfacefreemarker.template.TemplateHashModel
- Throws:
freemarker.template.TemplateModelException
-