Package org.openquark.cal.internal.runtime.lecc

Examples of org.openquark.cal.internal.runtime.lecc.RTPartialApp$_5$_1


        response.getDepAcctId().getBankInfo().setPostalCode("L1LL1L");
        response.getDepAcctId().getBankInfo().setStateProv("ON");

        List records = response.getDepAcctTrnRec();
        // Record1
        DepAcctTrnRec_Type trnRec1 = null;
        BankAcctTrnRec_Type baTrnRec1 = null;
        long maxRec = req.getTrnCountLimit().getCount();
        for (int i = 0; i < maxRec; i++) {
            trnRec1 = _1Factory.INSTANCE.createDepAcctTrnRec_Type();
            baTrnRec1 = _1Factory.INSTANCE.createBankAcctTrnRec_Type();

            trnRec1.setBankAcctTrnRec(baTrnRec1);
            trnRec1.getBankAcctTrnRec().setCSPRefId("CSPRefId1");
            trnRec1.getBankAcctTrnRec().setPostedDt("1");
            trnRec1.getBankAcctTrnRec().setOrigDt("1");
            trnRec1.getBankAcctTrnRec().setBillRefInfo("aaaa");

            trnRec1.getBankAcctTrnRec().setTrnType("1");

            trnRec1.getBankAcctTrnRec().setCurAmt(_1Factory.INSTANCE.createCurrencyAmount());
            trnRec1.getBankAcctTrnRec().getCurAmt().setAmt(new java.math.BigDecimal(2000.35));
            trnRec1.getBankAcctTrnRec().getCurAmt().setCurCode("100");

            trnRec1.setStmtRunningBal(_1Factory.INSTANCE.createCurrencyAmount());
            trnRec1.getStmtRunningBal().setAmt(new java.math.BigDecimal("1345.55"));

            trnRec1.getBankAcctTrnRec().setCustPayeeInfo(_1Factory.INSTANCE.createCustPayeeInfo_Type());
            trnRec1.getBankAcctTrnRec().getCustPayeeInfo().setBillingAcct("000601832");
            trnRec1.getBankAcctTrnRec().getCustPayeeInfo().setAcctPayAcctId("12");
            trnRec1.getBankAcctTrnRec().getCustPayeeInfo().setName("John Doe");
            trnRec1.getBankAcctTrnRec().getCustPayeeInfo().setNickname("Jody");

            trnRec1.getBankAcctTrnRec().getCustPayeeInfo().setBillerPayee(_1Factory.INSTANCE.createBillerPayee_Type());
            BillerPayee_Type BillerP = trnRec1.getBankAcctTrnRec().getCustPayeeInfo().getBillerPayee();

            BillerP.setBillerId(_1Factory.INSTANCE.createBillerId_Type());
            BillerId_Type BId = BillerP.getBillerId();

            BId.setBillerNum("123");
            BId.setSPName("SomeName");

            trnRec1.setAvailDt("sss");
            trnRec1.setPmtId("SomeID");
            trnRec1.setXferId("SomeOtherID");

            records.add(trnRec1);
        }

        return response;
View Full Code Here


        scaDomain.close();
    }

    public void testDepAcctTrnInq() throws IOException {
        DepAcctTrnInqRq_Type depAcctTrnInqRequest = _1Factory.INSTANCE.createDepAcctTrnInqRq_Type();
        TrnCountLimit_Type trnCountLimit = _1Factory.INSTANCE.createTrnCountLimit_Type();
        depAcctTrnInqRequest.setTrnCountLimit(trnCountLimit);
        depAcctTrnInqRequest.getTrnCountLimit().setCount(2);

        try {
            DepAcctTrnInqRs_Type depAcctTrnInqResponse = trnInq.DepAcctTrnInq(depAcctTrnInqRequest);
View Full Code Here

        scaDomain.close();
    }

    public void testDepAcctTrnInq() throws IOException {
        DepAcctTrnInqRq_Type depAcctTrnInqRequest = _1Factory.INSTANCE.createDepAcctTrnInqRq_Type();
        TrnCountLimit_Type trnCountLimit = _1Factory.INSTANCE.createTrnCountLimit_Type();
        depAcctTrnInqRequest.setTrnCountLimit(trnCountLimit);
        depAcctTrnInqRequest.getTrnCountLimit().setCount(2);

        try {
            DepAcctTrnInqRs_Type depAcctTrnInqResponse = trnInq.DepAcctTrnInq(depAcctTrnInqRequest);
View Full Code Here

      JAXBContext jc = JAXBContext.newInstance(Project.class);
      Unmarshaller um = jc.createUnmarshaller();
      Project project = ((Project) um.unmarshal(inputStream));

      Configuration configuration = project.getConfiguration();

      if (configuration != null)
      {
        Data data = configuration.getData();

        if (data != null)
        {
          ModuleDependencies moduleDependencies = data.getModuleDependencies();
View Full Code Here

    {
      InputStream inputStream = new FileInputStream(path);

      JAXBContext jc = JAXBContext.newInstance(Project.class);
      Unmarshaller um = jc.createUnmarshaller();
      Project project = ((Project) um.unmarshal(inputStream));

      Configuration configuration = project.getConfiguration();

      if (configuration != null)
      {
        Data data = configuration.getData();
View Full Code Here

    private SeekBookError prepareException(String message) {
        ExceptionType exception = new ExceptionType();
        exception.setOperation("seekBook");
        exception.setServiceName("LibraryService");
        exception.setExceptionText(message);
        ExceptionFrame frame = new ExceptionFrame();
        frame.getException().add(exception);
        SeekBookError e = new SeekBookError("Book not found", frame);
        return e;
    }
View Full Code Here

    System.out.println("ZIP: " + zip);
    System.out.println("Borrowed: " + borrowed);
  }

    public static void showExceptionFrame(ExceptionFrame exceptionFrame) {
        ExceptionType type = exceptionFrame.getException().get(0);
        if (type != null && type.getExceptionText() != null) {
            System.out.print("Error message is: " + type.getExceptionText());
        }
    }
View Full Code Here

            System.out.println(name);
        }
    }

    private SeekBookError prepareException(String message) {
        ExceptionType exception = new ExceptionType();
        exception.setOperation("seekBook");
        exception.setServiceName("LibraryService");
        exception.setExceptionText(message);
        ExceptionFrame frame = new ExceptionFrame();
        frame.getException().add(exception);
        SeekBookError e = new SeekBookError("Book not found", frame);
        return e;
    }
View Full Code Here

    public void publishNewBooksNotifications() throws InterruptedException {
        for (int ndx = 1; ndx < 6; ndx++) {
            Thread.sleep(4000L);
            List<BookType> newBooks = new LinkedList<BookType>();
      BookType book = new BookType();
      newBooks.add(book);
      PersonType author = new PersonType();
      book.getAuthor().add(author);
      author.setFirstName("Jack");
      author.setLastName("Icebear");
      Calendar dateOfBirth = new GregorianCalendar(101, Calendar.JANUARY, 2);
      author.setDateOfBirth(dateOfBirth.getTime());
      book.getTitle().add("More About Survival in the Arctic - Volume " + ndx);
      book.getPublisher().add("Frosty Edition");
      book.setYearPublished("2011");
      System.out.println("Publishing notification about a new book:");
      System.out.println("Jack Icebear - More About Survival in the Arctic - Volume " + ndx);
      library.newBooks(new Date(), newBooks);
        }
    }
View Full Code Here

                throw e;
            }
        }
        ListOfBooks result = new ListOfBooks();
        BookType book = new BookType();
        result.getBook().add(book);
        PersonType author = new PersonType();
        book.getAuthor().add(author);
        author.setFirstName("Jack");
        author.setLastName("Icebear");
        Calendar dateOfBirth = new GregorianCalendar(101, Calendar.JANUARY, 2);
        author.setDateOfBirth(dateOfBirth.getTime());
        book.getTitle().add("Survival in the Arctic");
        book.getPublisher().add("Frosty Edition");
        book.setYearPublished("2010");

        System.out.println("Book(s) is found:");

        showSeekBookResponse(result);
View Full Code Here

TOP

Related Classes of org.openquark.cal.internal.runtime.lecc.RTPartialApp$_5$_1

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.