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
  • Constructor Details

    • AbstractDateTimeTemplateModel

      public AbstractDateTimeTemplateModel()
  • Method Details

    • format

      public abstract String format(org.joda.time.format.DateTimeFormatter formatter)
    • getFieldOperation

      public AbstractDateTimeTemplateModel.FieldOperation getFieldOperation(String field)
    • 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 interface freemarker.template.TemplateHashModel
      Throws:
      freemarker.template.TemplateModelException
    • isEmpty

      public boolean isEmpty() throws freemarker.template.TemplateModelException
      Specified by:
      isEmpty in interface freemarker.template.TemplateHashModel
      Throws:
      freemarker.template.TemplateModelException