Package com.uic.ase.proj.xbn.template

Examples of com.uic.ase.proj.xbn.template.Template


  /**
    <P>Create a Template from the constructor parameters.</P>
   **/
  protected Template createTemplate(String s_templateName, ForLineRetrieval flr_srcTxt, TParseConfig tp_config, TFilter template_filter)  {
    try  {
      return (new Template(s_templateName, flr_srcTxt, tp_config, template_filter));
    catch(TemplateFormatException tfx)  {
      throwAX("getTemplateFrom:  " + tfx.toString());
    }

    //Never reached.  Required for compile.
View Full Code Here


    if(tdos.isString())  {
      throwAX("getFilledXGapsTString:  There are no gaps found in s_templateWithXGaps.");
    }

    Template t = new Template(tdos.getTemplateData());
    if(t.getUSAPUnique().getLength() != i_rqdUniqueGaps)  {
      throwAX("getFilledXGapsTString:  There are " + t.getUSAPUnique().getLength() + " unique gaps in s_templateWithOneGap.  It is required to have exactly " + i_rqdUniqueGaps + ".");
    }

    tf.setTemplate(t);
    for(int i = 0; i < t.getUSAPUnique().getLength(); i++)  {
      tf.fill(t.getUSAPUnique().getUniqueString(i).getString(), as_fillText[i]);
    }
    return tf.getResult();
  }
View Full Code Here

    VWObject acoTAndIdx = new VWObject();

    for(int i = 0; i < iCount; i++)  {
      if(tdosa_recursive.isTemplate(i))  {
        atf[i] = new TemplateFiller();
        atf[i].setTemplate(new Template(tdosa_recursive.getTemplateData(i)));
        acoTAndIdx.add(new TFAndArrIdx(i, atf[i]));

      else  {
        //It is a string
        ass[i] = new s_s(tdosa_recursive.getName(i), tdosa_recursive.getString(i));
View Full Code Here

    return ass;
  }

  private final s_s getRecursiveTmplResult(TemplateFiller tf_beingFilled, s_s[] ass_filled, TDOSArray tdosa_all, int i_idxTop, StringBuffer sb_path, TemplateFiller[] atf_all)  {
    Template t = tf_beingFilled.getTemplate();

    for(int i = 0; i < t.getUSAPUnique().getLength(); i++)  {
      String sUnqGap = t.getUSAPUnique().getUniqueString(i).getString();

      if(!tdosa_all.doesExist(sUnqGap))  {
        throwAX("getRecursivelyFilled:  Gap named '" + sUnqGap + "' exists in Template named '" + t.getName() + "', but this name does not exist in tdosa_recursive.");
      }

      int iArrIdxOfGapInTDOSA = tdosa_all.getArrIdx(sUnqGap);
      if(iArrIdxOfGapInTDOSA == i_idxTop)  {
        sb_path.append(" ... ").append(sUnqGap);
View Full Code Here

TOP

Related Classes of com.uic.ase.proj.xbn.template.Template

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.