Examples of PASStringOrBuffer


Examples of com.uic.ase.proj.xbn.string.PASStringOrBuffer

    <P>Append a list of StringOrBuffers onto the provided StringOrBuffer.</P>

    <P>Equal to <CODE><A HREF="~JD~append(sob,pa)~EJD~">append</A>(str_orBfr, (new <A HREF="~JD~passob#passob(sob[])~EJD~">PASStringOrBuffer</A>(a_strOrBfr)))</CODE></P>
   **/
  public void append(StringOrBuffer str_orBfr, StringOrBuffer[] a_strOrBfr)  {
    append(str_orBfr, (new PASStringOrBuffer(a_strOrBfr)));
  }
View Full Code Here

Examples of com.uic.ase.proj.xbn.string.PASStringOrBuffer

    catch(NullPointerException  npx)  {
      throwAXIfNull(a_strOrBfr, "a_strOrBfr", "getContainedIdxs");
      throwAXIfNull(gci_config, "gci_config", "getContainedIdxs");
    }

    PASStringOrBuffer passob = new PASStringOrBuffer(a_strOrBfr,
      new PARString(
        new PARDupNullLen(gci_config.isEqualOk(), false, (new RCLength(1, -1, false))),
        gci_config.getPARSCBad()));

    if(!passob.isValid())  {
      int iPAVType = passob.getPAViolation().getType();
      if(iPAVType == PAViolation.getType_NULL())  {
        throwAX("getContainedIdxs:  a_strOrBfr is zero elements in length.");
      }

      if(iPAVType == PAViolation.getType_SLMNT_NULL())  {
        throwAX("getContainedIdxs:  " + getLmntName(passob, gci_config.getAOSNames()) + sIS_NULL);
      }

      if(iPAVType == PAViolation.getType_SLMNT_LENGTH())  {
        throwAX("getContainedIdxs:  " + getLmntName(passob, gci_config.getAOSNames()) + " is zero characters in length.");
      }

      //The only other possible errors are duplicate and
      //contained.

      if(gci_config.getCallingClassFunc() != null)  {
        //Crash
        throwAX(gci_config.getCallingClassFunc() + sCLN_SP_SP + getLmntName(true, passob, gci_config.getAOSNames()) + " ('" + a_strOrBfr[passob.getPAViolation().getIdxFirst()] + "') contains " + (gci_config.isEqualOk()?"or is equal to ":sES) + getLmntName(false, passob, gci_config.getAOSNames()) + " ('" + a_strOrBfr[passob.getPAViolation().getIdxSecond()] + "') at index " + passob.getPAViolation().getContainedAtIdx() + sPD);
      }

      //Return indexes
      return new i_i_i(
        passob.getPAViolation().getIdxFirst(),
        passob.getPAViolation().getIdxSecond(),
        passob.getPAViolation().getContainedAtIdx());
    }

    return 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.