1 2 24 package org.enhydra.tool.codegen.internal; 25 import org.enhydra.tool.codegen.Constants; 27 import org.enhydra.tool.codegen.ProjectReplacementSet; 28 import org.enhydra.tool.common.ReplacementSet; 29 import org.enhydra.tool.common.Replacement; 30 import org.enhydra.tool.common.ToolException; 31 33 37 public class AppReplacementSet extends ProjectReplacementSet implements Constants { 38 39 40 43 public static final String CLIENT = "@CLIENT@"; 47 public static final String CONTENT_TYPE = "@CONTENT_TYPE@"; 51 public static final String APP = "at_APP_at"; 53 54 59 public AppReplacementSet() { 60 super(); 61 try { 62 this.add(new Replacement(AppReplacementSet.CLIENT, 63 TYPE_HTML.toUpperCase())); 64 this.add(new Replacement(AppReplacementSet.CONTENT_TYPE, 65 CONTENT_HTML)); 66 this.add(new Replacement(AppReplacementSet.APP, 67 APP)); 68 69 } catch (ToolException e) { 70 e.printStackTrace(); 71 } 72 } 73 74 } 75 | Popular Tags |