Home » freemarker-2.3.13 » freemarker.ext.beans » [javadoc | source]
freemarker.ext.beans
public class: DateModel [javadoc | source]
java.lang.Object
   freemarker.ext.beans.BeanModel
      freemarker.ext.beans.DateModel

All Implemented Interfaces:
    TemplateDateModel, AdapterTemplateModel, WrapperTemplateModel, TemplateHashModelEx

Wraps arbitrary subclass of java.util.Date into a reflective model. Beside acting as a TemplateDateModel , you can call all Java methods on these objects as well.
Field Summary
static final  ModelFactory FACTORY     
Fields inherited from freemarker.ext.beans.BeanModel:
object,  wrapper,  FACTORY
Constructor:
 public DateModel(Date date,
    BeansWrapper wrapper) 
    Creates a new model that wraps the specified date object.
    Parameters:
    date - the date object to wrap into a model.
    wrapper - the BeansWrapper associated with this model. Every model has to have an associated BeansWrapper instance. The model gains many attributes from its wrapper, including the caching behavior, method exposure level, method-over-item shadowing policy etc.
Method from freemarker.ext.beans.DateModel Summary:
getAsDate,   getDateType
Methods from freemarker.ext.beans.BeanModel:
get,   getAdaptedObject,   getWrappedObject,   hasPlainGetMethod,   invokeGenericGet,   isEmpty,   keySet,   keys,   size,   toString,   unwrap,   values,   wrap
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from freemarker.ext.beans.DateModel Detail:
 public Date getAsDate() 
 public int getDateType()