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
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHINGFields inherited from interface freemarker.template.TemplateScalarModel
EMPTY_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Stringformat(org.joda.time.format.DateTimeFormatter formatter) freemarker.template.TemplateModelabstract org.joda.time.format.DateTimeFormattergetFieldOperation(String field) protected abstract Map<String, AbstractDateTimeTemplateModel.FieldOperation<? extends AbstractDateTimeTemplateModel>> protected abstract freemarker.template.SimpleDatebooleanisEmpty()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getin interfacefreemarker.template.TemplateHashModel- Throws:
freemarker.template.TemplateModelException
-
isEmpty
public boolean isEmpty() throws freemarker.template.TemplateModelException- Specified by:
isEmptyin interfacefreemarker.template.TemplateHashModel- Throws:
freemarker.template.TemplateModelException
-