Examples of AOSLCreator


Examples of com.uic.ase.proj.xbn.array.AOSLCreator

      }
    }  catch(NullPointerException npx)  {
      throwAX("getAOSLFromPA:  primitive_array is null.");
    }

    AOSLCreator aoslc = null;
    if(primitive_array.wasValidated()  &&
         !primitive_array.getPrimitiveArrayRule().getPARDupNullLen().areDupsOk())  {
      aoslc = new AOSLCreator(false, primitive_array.getLength(), b_listUnqStrs);
    else  {
      aoslc = new AOSLCreator(true, b_listUnqStrs);
    }

    for(int i = 0; i < primitive_array.getLength(); i++)  {
      aoslc.addString(primitive_array.getString(i));
    }

    aoslc.lock();

    return aoslc.getAOSLookup();
  }
View Full Code Here

Examples of com.uic.ase.proj.xbn.array.AOSLCreator

      optr_dbg.write("[" + tp_config.toString() + "]");
    }

    VWString acsSurroundingText = new VWString();
    StringBuffer sbCurrentSurrText = new StringBuffer(sES);
    AOSLCreator aoslc = new AOSLCreator();

    TLAObjects tlao = new TLAObjects(tp_config);

    while(for_lineRetrieval.hasMoreLines())  {
      StringBuffer sbLine = for_lineRetrieval.getNextLine();
      TemplateLineAnalyzer tla = new TemplateLineAnalyzer(getName(), for_lineRetrieval.getLineNumberPrev(), sbLine, tlao);

      String sFinalSurrTxt = null;
      while(!tla.isDoneAnalyzing())  {
        if(tla.hasAnotherGap())  {
          s_s ss = tla.getNextSurrTxtAndGap();

          if(!tp_config.doIgnoreSurrTxt())  {
            sbCurrentSurrText.append(ss.s1);
            addCurrSurrTextOntoArray(acsSurroundingText, sbCurrentSurrText);
          }

          aoslc.addString(ss.s2);

          if(aoslc.wasLastStringUnique())  {
            //THIS IS PRINTING OUT AFTER THE GAP *FOLLOWING*
            //THE ONE THAT IS UNIQUE.  HMMMMM.
            optr_dbg.write("\t\t\t[ UNIQUE ]");
          }

        }  else  {
          //The end of the line has been reached.  Get the final
          //surrounding text.
          sFinalSurrTxt = tla.getFinalSurrTxt();

        }
      }

      if(!tp_config.doIgnoreSurrTxt())  {
        sbCurrentSurrText.append(sFinalSurrTxt);
      }
    }

    if(aoslc.getCountUnq() < 1)  {
      //There are no gaps, so the FLR contains a plain string.
      sString = sbCurrentSurrText.toString();
      tData = null;

      optr_dbg.write("No gaps found.  isTemplate() equals false.  Use getString().");

    else  {
      //There is at least one gap.  Add the final surrounding
      //text to the array.
      if(!tp_config.doIgnoreSurrTxt())  {
        addCurrSurrTextOntoArray(acsSurroundingText, sbCurrentSurrText);
      }

      sString = null;

      aoslc.lock();
      tData = new TemplateData(getName(),
        aoslc.getAOSLookup(),
        new APString(acsSurroundingText.getAOString()),
        tlao.sTagStart, tlao.sTagEnd);

      sName = null;

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.