1 package org.sapia.util.text; 2 3 4 15 public class ConstantElement implements TemplateElementIF { 16 20 21 private String _theContent; 22 23 27 32 public ConstantElement(String aContent) { 33 _theContent = aContent; 34 } 35 36 40 45 public String getContent() { 46 return _theContent; 47 } 48 49 53 61 public String render(TemplateContextIF aContext) throws TemplateException { 62 return _theContent; 63 } 64 65 72 public void render(TemplateContextIF aContext, StringBuffer aBuffer) 73 throws TemplateException { 74 aBuffer.append(_theContent); 75 } 76 } 77 | Popular Tags |