1 52 53 package freemarker.template; 54 55 import java.util.Arrays ; 56 import java.util.Collections ; 57 import java.util.Date ; 58 import java.util.List ; 59 60 70 public interface TemplateDateModel extends TemplateModel 71 { 72 76 public static final int UNKNOWN = 0; 77 78 81 public static final int TIME = 1; 82 83 86 public static final int DATE = 2; 87 88 91 public static final int DATETIME = 3; 92 93 public static final List TYPE_NAMES = 94 Collections.unmodifiableList( 95 Arrays.asList( 96 new String [] { 97 "UNKNOWN", "TIME", "DATE", "DATETIME" 98 })); 99 103 public Date getAsDate() throws TemplateModelException; 104 105 109 public int getDateType(); 110 } 111 | Popular Tags |