예제 #1
0
 /**
  * Prepends the value of the specified Template to the begining of this Template.
  *
  * @param hout the Template
  */
 public Template prepend(Template hout) {
   if (hout != null) m_template = new StringBuffer(hout.toString() + m_template.toString());
   return this;
 }
예제 #2
0
 public void setLastTag(String tag, Template tagvalue) {
   setLastTag(tag, tagvalue.toString());
 }
예제 #3
0
 /**
  * Appends the value of the specified Template to the end of this Template.
  *
  * @param hout the Template
  */
 public Template append(Template hout) {
   if (hout != null) m_template = m_template.append(hout.toString());
   return this;
 }
예제 #4
0
 /**
  * Constructs a new Template with the specified template.
  *
  * @param templ the Template
  */
 public Template(Template templ) {
   m_template = new StringBuffer(templ.toString());
   m_template2 = new StringBuffer(templ.toString());
 }