Examples of VWObject


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

    bDupStringsOk = b_dupStrsOk;
    iUnqStrCount = i_unqStrCount;
    bListStrsOnError = b_listStrsOnError;

    acoUnique = new VWObject();
    acoAbsolute = new VWObject();
  }
View Full Code Here

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

      <P>Get a copy of this VWObject as an Object.</P>

      <P>This recreates the internal vector, but points to the same object as <I>this</I> VWObject.</P>
     **/
    protected final Object clone() throws CloneNotSupportedException  {
      VWObject acbClone = new VWObject();
      for(int i = 0; i < size(); i++)  {
        acbClone.add(getObject(i));
      }

      return acbClone;
    }
View Full Code Here

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

    //There is at least one file/dir in this directory.
    FThenDArray aFTD = new FThenDArray(aSubFiles);

    //Get all sub-files/dirs...START
      VWObject acoSubDirs = new VWObject();
      VWObject acoSubFiles = new VWObject();


      DirFile df = null;

      String sRelDirForSub = null;
      if(aFTD.hasMoreFiles()  ||  aFTD.hasMoreDirs())  {
        if(getRelDir().length() < 1)  {
          sRelDirForSub = sES;
        else  {
          sRelDirForSub = getRelDir() + File.separator;
        }

        sRelDirForSub +=  getFileObjThis().getName();
      }

      //First:  Process all sub-files.
      while(aFTD.hasMoreFiles())  {
        File fFile = aFTD.getNextFile();
        //This is a file.
        //A what?  A file.  A what?  A file.  Oh, a file.

        o_utputter.writeNoln(".");

        //The final "null" parameter is the FileFilter.  We're
        //definitely not going to analyze sub-files (files don't
        //*have* sub-files!), so there's no need to provide a
        //FileFilter.
        df = new DirFile(getFileObjBaseDir(), sRelDirForSub, fFile, getLevelsToAnalyze(), (getLevelsBelowBaseDir() + 1), null, o_utputter);

        acoSubFiles.add(df);
      }
      //All sub-files have been processed.


      //Second, process all sub-directories.
      while(aFTD.hasMoreDirs())  {
        File fDir = aFTD.getNextDir();

        //Do we need to analyze the contents of this
        //directory?
        int iLevelsToAnalyzeInSubObjects = -2;
        boolean bNeedToAnalyzeSubDir = false;
        if(getLevelsToAnalyze() > 0)  {
          //We definitely need to analyze at least the
          //contents of this directory.
          iLevelsToAnalyzeInSubObjects = getLevelsToAnalyze() - 1;
          bNeedToAnalyzeSubDir = true;

        else if(getLevelsToAnalyze() == -1)  {
          //Analyze everything, no matter how deep.
          iLevelsToAnalyzeInSubObjects = -1;
          bNeedToAnalyzeSubDir = true;
        }

        if(bNeedToAnalyzeSubDir)  {
          //We want to analyze this directory.  Not
          //necessarily it's contents, but definitely *it*.

          df = new DirFile(getFileObjBaseDir(), sRelDirForSub, fDir, iLevelsToAnalyzeInSubObjects, (getLevelsBelowBaseDir() + 1), file_filter, o_utputter);

          acoSubDirs.add(df);
        }

      }
      //All directories have been processed.


      //We now have all the sub-thing-ees.  Put them into the
      //DirFile arrays.

      Object[] ao = acoSubDirs.getAOObject();
      adfSubDirectories = new DirFile[ao.length];
      for(int i = 0; i < ao.length; i++)  {
        adfSubDirectories[i] = (DirFile)ao[i];
      }

      ao = acoSubFiles.getAOObject();
      adfSubFiles = new DirFile[ao.length];
      for(int i = 0; i < ao.length; i++)  {
        adfSubFiles[i] = (DirFile)ao[i];
      }
    //Get all sub-files/dirs...END
View Full Code Here

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

    <P>Get the VWObject containing all configuration variables read in from the source text.</P>

    @return  <CODE><A HREF="~JD~getVWObject(flr,crc,optr,vwo,crf)~EJD~">getVWObject</A>(for_lineRetrieval, cr_config, optr_dbg, (new <A HREF="~JD~vwo#vwo()~EJD~">VWObject</A>()), null)</CODE>
   **/
  public VWObject getVWObject(ForLineRetrieval for_lineRetrieval, CRConfig cr_config, Outputter optr_dbg) throws ConfigFormatException  {
    return getVWObject(for_lineRetrieval, cr_config, optr_dbg, (new VWObject()), null);
  }
View Full Code Here

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

    if(st.countTokens() == 0)  {
      return null;
    }

    VWObject vwo = new VWObject();

    int iCommas = 0;
    while(st.hasMoreTokens())  {
      String s = st.nextToken();
      if(!s.equals(","))  {
        Parameter p = new Parameter();
        if(s.endsWith("[]"))  {
          p.bArray = true;
          s = s.substring(0, (s.length() - 2));

          if(s.length() < 1)  {
            throwAX("Array parameter found, but no class abbreviation exists before '[]'");
          }

        }  else  {
          p.bArray = false;
        }

        if(!uStr.isLetterDigitUnderscore(s))  {
          throwAX("constructor:   The parameter abbreviation '" + s + " has illegal characters.  Must only contain letters digits and underscores.  If it is an array, then [] must exist between the parameter abbreviation and comma.  Spaces are illegal.");
        }

        p.sName = s;
        vwo.add(p);

      else  {
        iCommas++;
      }
    }

    if(iCommas != (vwo.size() - 1))  {
      throwAX("constructor:  There is/are " + iCommas + " comma(s) between the parenthesis, and " + vwo.size() + " parameter(s).  Each parameter must be at least one character in length.");
    }

    Object[] ao = vwo.getAOObject();
    aParameters = new Parameter[ao.length];
    for(int i = 0; i < aParameters.length; i++)  {
      aParameters[i] = (Parameter)ao[i];
    }
View Full Code Here

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

    @exception  AssertException  The special PackageType "overview-summary", with an abbreviation of "over" is defined in this function.  An exception is thrown if you also define either in your class map.
   **/
  public final JDCArray getJDCAFromFLR(ForLineRetrieval for_lineRetrieval)  {
    throwAXIfNull(for_lineRetrieval, "for_lineRetrieval", "getJDCAFromFLR");

    VWObject acoJDC = new VWObject();
    VWObject acoPT = new VWObject();
    PTArray pta = null;

    boolean bFoundPTDivider = false;
    while(for_lineRetrieval.hasMoreLines())  {
      String sLine = for_lineRetrieval.getNextLine().toString();

      sLine = sLine.trim();
      if(sLine.length() > 0)  {
        if(!bFoundPTDivider)  {
          if(sLine.startsWith("~"))  {
            if(acoPT.size() == 0)  {
              throwAX("getJDCAFromFLR:  No PackageTypes found before the '~' divider line.  PackageTypes belong before it, and JDClasses after.  At least one of each is required.");
            }

            Object[] ao = acoPT.getAOObject();
            PackageType[] aPT = new PackageType[ao.length + 1];
            for(int i = 0; i < ao.length; i++)  {
              aPT[i] = (PackageType)ao[i];
            }

            aPT[aPT.length - 1] = new PackageType("overview-summary", null);
            pta = new PTArray(aPT);
            bFoundPTDivider = true;

          else  {
            acoPT.add(getPackageTypeFromLine(sLine, for_lineRetrieval.getLineNumberPrev()));

          }
        }  else  {
          JDClass jdc = getJDClassFromLine(sLine, for_lineRetrieval.getLineNumberPrev(), pta);
          acoJDC.add(jdc);
        }
      }
    }

    if(!bFoundPTDivider)  {
      throwAX("getJDCAFromFLR:  So far, there are " + acoPT.size() + " PackageTypes, but I've reached the end of the file, and have not found the '~' divider line.  PackageTypes belong before it, and JDClasses after.  At least one of each is required.");
    }

    //Add the most special and reserved JDClass...
    JDClass jdc = getJDClassFromLine("over    overview-summary", 1, pta);
    acoJDC.add(jdc);
View Full Code Here

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

      AS SOON AS A TEMPLATE IS COMPLETELY FILLED, the result is put into anvs
     */
    TemplateFiller[] atf = new TemplateFiller[iCount];
    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.
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.