| freemarker.template.TemplateDateModel
All known Subclasses: freemarker.template.SimpleDate, freemarker.ext.beans.DateModel,
TemplateDateModel | public interface TemplateDateModel extends TemplateModel(Code) | | Date values in a template data model must implement this interface.
Contrary to Java, FreeMarker actually distinguishes values that represent
only a time, only a date, or a combined date and time. All three are
represented using this single interface, however there's a method that
author: Attila Szegedi version: $Id: TemplateDateModel.java,v 1.10 2004/03/13 13:05:09 ddekany Exp $ |
Field Summary | |
final public static int | DATE The date model represents a date-only value. | final public static int | DATETIME The date model represents a datetime value. | final public static int | TIME The date model represents a time-only value. | final public static List | TYPE_NAMES | final public static int | UNKNOWN It is not known whether the date model represents a time-only,
a date-only, or a datetime value. |
DATE | final public static int DATE(Code) | | The date model represents a date-only value.
|
DATETIME | final public static int DATETIME(Code) | | The date model represents a datetime value.
|
TIME | final public static int TIME(Code) | | The date model represents a time-only value.
|
TYPE_NAMES | final public static List TYPE_NAMES(Code) | | |
UNKNOWN | final public static int UNKNOWN(Code) | | It is not known whether the date model represents a time-only,
a date-only, or a datetime value.
|
getDateType | public int getDateType()(Code) | | Returns the type of the date. It can be any of TIME,
DATE, or DATETIME.
|
|
|