コード例 #1
0
 /**
  * Sets the Tag for the specified tag.
  *
  * @param tag the tag template to be replaced
  * @param tagvalue the value of the tag
  */
 public boolean setTag(String tag, String tagvalue) {
   if (tag.equals(tagvalue)) {
     tools.util.LogMgr.debug(" CANNOT setTag Template - IDENTICAL " + tag);
     return false;
   }
   if (m_template.toString().indexOf(tag) > -1) {
     m_template = SharedMethods.replaceSubstringBuffer(m_template, tag, tagvalue);
     return true;
   } else return false;
 }