Examples of RCLength


Examples of com.uic.ase.proj.xbn.util.RCLength

    <P>Create an AOOVCAll with default values.</P>

    <P>Equal to <CODE><A HREF="~JD~aoovca(rcl)~EJD~">AOOVCAll</A>(new <A HREF="~JD~rcl#rcl(i,i,b)~EJD~">RCLength</A>(1, -1, false))</CODE></P>
   **/
  public AOOVCAll()  {
    this(new RCLength(1, -1, false));
  }
View Full Code Here

Examples of com.uic.ase.proj.xbn.util.RCLength

    DirFile df = new DirFile(s_baseDir, i_subDirLevels, file_filter, optr_dbg);

    //Validate as_acceptPkgPre, and crash if bad.
    PASString pass = new PASString(as_acceptPkgPre,
      new PARString(
        new PARDupNullLen(false, true, (new RCLength(1, -1, false))),
        new PAROrderDir(true)));
    pass.isValid("xbn.util.Utility.getPackageDependencies", "as_acceptPkgPre");

    VWString acsAcceptPre = new VWString(true);
    if(as_acceptPkgPre != null)  {
View Full Code Here

Examples of com.uic.ase.proj.xbn.util.RCLength

    <P>Create a completely unrestricted AOOVConfig.</P>

    <P>Equal to <CODE><A HREF="~JD~aoovc(b,rcl,b)~EJD~">AOOVConfig</A>(true, (new <A HREF="~JD~rcl#rcl()~EJD~">RCLength</A>()), true)</CODE></P>
   **/
  public AOOVConfig()  {
    this(true, (new RCLength()), true);
  }
View Full Code Here

Examples of com.uic.ase.proj.xbn.util.RCLength

    throwAXIfNull(usapAbsolute, "usap_absolute", s_callingClsFnc);
    throwAXIfNull(aoslh, "aosl_hashtable", s_callingClsFnc);

    CompareArrays ca = new CompareArrays(new CACExact());

    UniqueStringPAS pasUnq = usapUnique.getUniqueStringPAS(new PARSGoodUnq(new PARDNLGoodUnq(new RCLength(1, -1, false))));
    pasUnq.crashIfBad("xbn.array.AOSLookup." + s_callingClsFnc, "usap_unique");

    UniqueStringPAS pasAbsolute = usapAbsolute.getUniqueStringPAS(new PARString(new PARDupNullLen(true, false, (new RCLength(1, -1, false)))));
    pasAbsolute.crashIfBad("xbn.array.AOSLookup." + s_callingClsFnc, "usap_absolute");

    ca.crashIfBadValues("xbn.array.AOSLookup." + s_callingClsFnc, "usap_unique", "usap_absolute", pasUnq, pasAbsolute);
  }
View Full Code Here

Examples of com.uic.ase.proj.xbn.util.RCLength

    <P>Create a PARDupNullLen.</P>

    <P>Equal to <CODE><A HREF="~JD~pardnl(b,b,rcl)~EJD~">PARDupNullLen</A>(b_dupsOk, b_nullOk, (new <A HREF="~JD~rcl#rcl()~EJD~">RCLength</A>()))</CODE></P>
   **/
  public PARDupNullLen(boolean b_dupsOk, boolean b_nullOk)  {
    this(b_dupsOk, b_nullOk, (new RCLength()));
  }
View Full Code Here

Examples of com.uic.ase.proj.xbn.util.RCLength

    catch(NullPointerException npx)  {
      throwAX("constructor:  par_dupNullLen is null.");
    }

    bNullOk = par_dupNullLen.bNullOk;
    rcl = new RCLength(par_dupNullLen.rcl);
  }
View Full Code Here

Examples of com.uic.ase.proj.xbn.util.RCLength

      return true;
    }

    //To make the below code a bit more consice...START
      boolean bNullOk = getPARChar().getPARDupNullLen().isNullOk();
      RCLength rclArray = getPARChar().getPARDupNullLen().getRCLength();
      boolean bDupsOk = getPARChar().getPARDupNullLen().areDupsOk();

      boolean bAXIfBad = (s_callingClsFnc != null  ||  s_varName != null);
    //To make the below code a bit more consice...END

    if(!bNullOk)  {
      if(isNull())  {
        setPAViolation(new PAViolation(PAViolation.getType_NULL()));
        if(bAXIfBad)  {
          throwAXIllegal(s_callingClsFnc, s_varName, "isNull() equals true.");
        }
        return false;
      }

    }  else if(isNull())  {
      //A null array cannot be analyzed further.
      declareNoViolation();
      return true;
    }
    //The array is not null.

    if(!rclArray.isValid(getLength()))  {
      setPAViolation(new PAViolation(PAViolation.getType_LENGTH()));
      if(bAXIfBad)  {
        throwAXIllegal(s_callingClsFnc, s_varName, "the number of elements in the array (" + getLength() + ") is illegal according to getPARChar().getArrayRCL().isValid().");
      }
      return false;
View Full Code Here

Examples of com.uic.ase.proj.xbn.util.RCLength

    <P>Create a PARSElement.</P>

    <P>Equal to <CODE><A HREF="~JD~parse(b,rcl)~EJD~">PARSElement</A>(b_lmntNullOk, (new <A HREF="~JD~rcl#rcl()~EJD~">RCLength</A>()))</CODE></P>
   **/
  public PARSElement(boolean b_lmntNullOk)  {
    this(b_lmntNullOk, (new RCLength()));
  }
View Full Code Here

Examples of com.uic.ase.proj.xbn.util.RCLength

    <P>Create a PARSElement.</P>

    <P>Equal to <CODE><A HREF="~JD~parse(b,rcl,s[])~EJD~">PARSElement</A>(b_lmntNullOk, (new <A HREF="~JD~rcl#rcl()~EJD~">RCLength</A>()), as_illegal)</CODE></P>
   **/
  public PARSElement(boolean b_lmntNullOk, String[] as_illegal)  {
    this(b_lmntNullOk, (new RCLength()), as_illegal);
  }
View Full Code Here

Examples of com.uic.ase.proj.xbn.util.RCLength

    }

    //To make the below code a bit more consice...START

      boolean bNullOk = getPARString().getPARDupNullLen().isNullOk();
      RCLength rclArray = getPARString().getPARDupNullLen().getRCLength();
      boolean bDupsOk = getPARString().getPARDupNullLen().areDupsOk();
      boolean bContainmentOk = getPARString().getPARSContain().isContainmentOk();
      boolean bOrderedContainment = getPARString().getPARSContain().mustBeOrdered();
      boolean bContainOrderAscDesc = getPARString().getPARSContain().getOrderDirAscDesc();
      boolean bNullLmntOk = getPARString().getPARSElement().isNullLmntOk();
      RCLength rclLmnt = getPARString().getPARSElement().getRCLength();


      boolean bAXIfBad = (s_callingClsFnc != null  ||  s_varName != null);
    //To make the below code a bit more consice...END

    if(!bNullOk)  {
      if(isNull())  {
        setPAViolation(new PAViolation(PAViolation.getType_NULL()));
        if(bAXIfBad)  {
          throwAXIllegal(s_callingClsFnc, s_varName, "isNull() equals true.");
        }
        return false;
      }


    }  else if(isNull())  {

      //A null array cannot be analyzed further.
      declareNoViolation();
      return true;
    }
    //The array is not null.


    if(!rclArray.isValid(getLength()))  {
      setPAViolation(new PAViolation(PAViolation.getType_LENGTH()));
      if(bAXIfBad)  {
        throwAXIllegal(s_callingClsFnc, s_varName, "the number of elements in the array (" + getLength() + ") is illegal according to getPARString().getPARDupNullLen().getRCLength().isValid().");
      }

      return false;

    else if(getLength() < 1)  {

      //The array is zero elements in length, and this is okay.
      //An empty array can, but does not need to be analyzed further.
      declareNoViolation();
      return true;
    }
    //The string array has at least one element.

    final String sLMNT = "element ";
    final String sPRN_QT = " ('";

    for(int i = 0; i < getLength(); i++)  {

      if(!bNullLmntOk  &&  getString(i) == null)  {
        //A null element is bad.

        setPAViolation(new PAViolation(PAViolation.getType_SLMNT_NULL(), i));
        if(bAXIfBad)  {
          throwAXIllegal(s_callingClsFnc, s_varName, sLMNT + i + " is null.");
        }

        return false;
      }
      //If the element is null, this is okee dokee.


      if(getString(i) != null  &&  !rclLmnt.isValid(getString(i).length()))  {
        setPAViolation(new PAViolation(PAViolation.getType_SLMNT_LENGTH(), i));;
        if(bAXIfBad)  {
          throwAXIllegal(s_callingClsFnc, s_varName, "the length of element " + i + sPRN_QT + getString(i) + "', length " + getString(i).length() + ") is illegal according to getPARString().getPARSElement().getRCLength().isValid().");
        }
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.