1 19 20 package org.netbeans.modules.web.wizards; 21 22 class FileType { 23 private String name, suffix; 24 25 private FileType(String name, String suffix) { 26 this.name = name; 27 this.suffix = suffix; 28 } 29 30 public String toString() { return name; } 31 32 public String getSuffix() { return suffix; } 33 34 public static final FileType SERVLET = 35 new FileType("servlet", "java"); 36 37 public static final FileType FILTER = 38 new FileType("filter", "java"); 39 40 public static final FileType LISTENER = 41 new FileType("listener", "java"); 42 43 public static final FileType JSP = 44 new FileType("jsp", "jsp"); 45 46 public static final FileType JSPDOC = 47 new FileType("jspdoc", "jspx"); 48 49 public static final FileType JSPF = 50 new FileType("jspf", "jspf"); 51 52 public static final FileType TAG = 53 new FileType("tag_file", "tag"); 54 55 public static final FileType TAGLIBRARY = 56 new FileType("tag_library", "tld"); 57 58 public static final FileType TAG_HANDLER = 59 new FileType("tag_handler", "java"); 60 61 public static final FileType HTML = 62 new FileType("html", "html"); 63 64 public static final FileType XHTML = 65 new FileType("xhtml", "xhtml"); 66 67 } 68 69 | Popular Tags |