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

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


      }

    }  else  {
      optrDbg.write("Templates exist in '" + sTmplDir + "'");

      TemplateFiller tf = new TemplateFiller(false);
      StringBuffer sbAllPackageLists = new StringBuffer(sES);

      for(int i = 0; i < aSacsacs.length; i++)  {
        String sDOSection = getSection(tf, aSacsacs[i].acs1,
          tog1DOSection, sTMPL_DOS_all_depends_on_rows,
          tog1DOSRow, sTMPL_DOSR_package_name,
          sDOSRNewline, sDOSctnNothing);

        String sDOBSection = getSection(tf, aSacsacs[i].acs2,
          tog1DOBSection, sTMPL_DOBS_all_depended_on_by_rows,
          tog1DOBSRow, sTMPL_DOBSR_package_name,
          sDOBSRNewline, sDOBSctnNothing);

        tf.setTemplate(tog3Pkg);
        tf.fill(sTMPL_PKG_package_name, aSacsacs[i].s);
        tf.fill(sTMPL_PKG_depends_on_section, sDOSection);
        tf.fill(sTMPL_PKG_depended_on_by_section, sDOBSection);
        sbAllPackageLists.append(tf.getResult());
      }

      tf.setOWriter(optrOutput.getOWriter());
      tf.setTemplate(tog1Overall);
      tf.fill(sTMPL_PKG_all_dependency_lists, sbAllPackageLists.toString());

      optrDbg.write("Output exists in '" + sOutputFile + "'...");
    }
  }
View Full Code Here


    @param  tog_1  The TemplateOrderedGaps object, whose resulting text should fill in the gap name s_gapName, as existing in the currently-set Template.  May not be null.
    @param  s_fillText1  The fill text for the only unique gap existing in tog_1.  May not be null.
   **/
  public final void fill(String s_gapName, TOGOne tog_1, String s_fillText)  {
    if(tfSub == null)  {
      tfSub = new TemplateFiller();
    }

    if(asFT_TOG1 == null)  {
      asFT_TOG1 = new String[] {null};
    }
View Full Code Here

    @param  s_fillText1  The fill text for the first of two unique gaps existing in tog_2.  May not be null.
    @param  s_fillText2  The fill text for the second of two unique gaps existing in tog_2.  May not be null.
   **/
  public final void fill(String s_gapName, TOGTwo tog_2, String s_fillText1, String s_fillText2)  {
    if(tfSub == null)  {
      tfSub = new TemplateFiller();
    }

    if(asFT_TOG2 == null)  {
      asFT_TOG2 = new String[] {null, null};
    }
View Full Code Here

    @param  s_fillText2  The fill text for the second of three unique gaps existing in tog_3.  May not be null.
    @param  s_fillText3  The fill text for the third of three unique gaps existing in tog_3.  May not be null.
   **/
  public final void fill(String s_gapName, TOGThree tog_3, String s_fillText1, String s_fillText2, String s_fillText3)  {
    if(tfSub == null)  {
      tfSub = new TemplateFiller();
    }

    if(asFT_TOG3 == null)  {
      asFT_TOG3 = new String[] {null, null, null};
    }
View Full Code Here

    @param  as_fillText  The array of fill text to be applied to t_rdrdGaps.  Must not be null, and must have the same length as <CODE>t_rdrdGaps.<A HREF="~JD~t~EJD~#getUSAPUnique()">getUSAPUnique</A>().<A HREF="~JD~ap~EJD~#getLength()">getLength</A>()</CODE>.
   **/
  public final void fill(String s_gapName, TemplateOrderedGaps t_rdrdGaps, String[] as_fillText)  {
    if(tfSub == null)  {
      //This is the first call to a function that uses tfSub.  Create it.
      tfSub = new TemplateFiller();
    }

    if(t_rdrdGaps == null)  {
      throwAX(sFILL, "t_rdrdGaps is null.");
    }
View Full Code Here

   **/
  public final String getAllFilledWith(Template t_emplate, String s_fillText)  {
    debug("Filling all gaps with '" + s_fillText + sQUOTE);

    if(tfSub == null)  {
      tfSub = new TemplateFiller();
    }

    tfSub.setTemplate(t_emplate);


View Full Code Here

    s_s[] ass = new s_s[iCount];
    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));
      }
    }

    if(acoTAndIdx.size() == 0)  {
      throwAX("getRecursivelyFilled:  There are no Templates in tdosa_recursive (there are a total of " + iCount + " elements in tdosa_recursive, all of which are strings).");
    }

    StringBuffer sbPath = new StringBuffer(sES);
    for(int i = 0; i < acoTAndIdx.size(); i++)  {
      TFAndArrIdx tfaai = (TFAndArrIdx)acoTAndIdx.getObject(i);
      TemplateFiller tf = tfaai.tf;
      int iArrIdxInATF = tfaai.iArrIdxInATF;

      if(ass[iArrIdxInATF] == null)  {
        //sbPath is used only for circular path error messages.
        if(sbPath.length() > 0)  {
          sbPath.setLength(0);
        }
        sbPath.append(tf.getTemplate().getName());

        //Fill this template, and it's sub-templates as necessary.
        ass[iArrIdxInATF] = getRecursiveTmplResult(tf, ass, tdosa_recursive, iArrIdxInATF, sbPath, atf);
      }
    }
View Full Code Here

      if(ass_filled[iArrIdxOfGapInTDOSA] == null)  {
        //There are some sub-gaps in the contents.  Fill them.
        sb_path.append(" ... ").append(sUnqGap);

        TemplateFiller tfSubTemplate = atf_all[iArrIdxOfGapInTDOSA];
        ass_filled[iArrIdxOfGapInTDOSA] = getRecursiveTmplResult(tfSubTemplate, ass_filled, tdosa_all, i_idxTop, sb_path, atf_all);
      }
      //The contents for this gap have been filled.  Completely.
      tf_beingFilled.fill(sUnqGap, ass_filled[iArrIdxOfGapInTDOSA].s2);
    }
View Full Code Here

TOP

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

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.