Examples of finish()


Examples of org.jibx.schema.SchemaHolder.finish()

        // fix all references between schemas
        ArrayList holders = new ArrayList(m_uriSchemas.values());
        SchemaElement[] schemas = new SchemaElement[holders.size()];
        for (int i = 0; i < holders.size(); i++) {
            SchemaHolder hold = (SchemaHolder)holders.get(i);
            hold.finish();
            schemas[i] = hold.getSchema();
        }
       
        // set up validation with in-memory schemas
        org.jibx.schema.validation.ValidationContext vctx = new org.jibx.schema.validation.ValidationContext();
View Full Code Here

Examples of org.jruby.util.InputStreamMarkCursor.finish()

            do {
                if (isShebang(cursor)) break;
            } while (skipToNextLine(cursor));
        } catch (IOException e) {
        } finally {
            try { cursor.finish(); } catch (IOException e) {}
        }
    }
   
    /**
     * The intent here is to gather up any options that might have
View Full Code Here

Examples of org.jsurveylib.Survey.finish()

        if (PREVIOUS_BUTTON.equals(buttonName) && survey.isPreviousPageAvailable()) {
            survey.goToPreviousPage();
        } else if (NEXT_BUTTON.equals(buttonName) && survey.isNextPageAvailable()) {
            survey.goToNextPage();
        } else if (FINISH_BUTTON.equals(buttonName) && survey.isLastPageAndComplete()) {
            survey.finish();
        } else {
            System.err.println("Unknown button name: " + buttonName);
        }

        return translatePage(survey);
View Full Code Here

Examples of org.krysalis.barcode4j.output.bitmap.BitmapCanvasProvider.finish()

          : BufferedImage.TYPE_BYTE_BINARY;
     
      BitmapCanvasProvider provider = new BitmapCanvasProvider(
          out, "image/x-png", resolution, imageType, antiAlias, orientation);
      barcode.generateBarcode(provider, message);
      provider.finish();
     
      byte[] imageData = out.toByteArray();
      return JRImageRenderer.getInstance(imageData);
    }
    catch (Exception e)
View Full Code Here

Examples of org.libreplan.business.resources.entities.CriterionSatisfaction.finish()

    public void testFinish() {
        final Criterion criterion = CriterionDAOTest.createValidCriterion();
        Worker worker = Worker.create("firstName", "surName", "2333232");
        CriterionSatisfaction criterionSatisfaction = CriterionSatisfaction.create(year(2000), criterion, worker);
        LocalDate end = year(2006);
        criterionSatisfaction.finish(end);
        assertTrue(criterionSatisfaction.isFinished());
        assertEquals(end, criterionSatisfaction.getEndDate());
    }

    @Test
View Full Code Here

Examples of org.libreplan.business.resources.entities.Worker.finish()

                equalTo(1));
        assertThat(worker.query().from(criterion).enforcedInAll(
                Interval.range(year(5001), year(5500))).result().size(),
                equalTo(1));

        worker.finish(new CriterionWithItsType(criterionType, criterion));

        assertThat(worker.query().from(criterion).enforcedInAll(
                Interval.range(year(4001), year(4999))).result().size(),
                equalTo(1));
        assertThat(worker.query().from(criterion).enforcedInAll(
View Full Code Here

Examples of org.neo4j.graphdb.Transaction.finish()

        Transaction tx = db.beginTx();
        try {
            node.setProperty(AssetDB.NAME,name);
            tx.success();
        } finally {
            tx.finish();
        }
    }

    public Node getNode() {
        return node;
View Full Code Here

Examples of org.netbeans.api.progress.ProgressHandle.finish()

                try {
                    handle.start();
                    Document doc = buildReportDocument(report);
                    if (doc != null) {
                        if (sendDocument(doc)) {
                            handle.finish();
                            DialogDisplayer.getDefault().notify(
                                    new NotifyDescriptor.Message(NbBundle.getMessage(ReportController.class, "ReportController.status.sent"),
                                    NotifyDescriptor.INFORMATION_MESSAGE));
                            return;
                        }
View Full Code Here

Examples of org.netbeans.jellytools.NewProjectWizardOperator.finish()

    public void testNewScalaProject() {
        NewProjectWizardOperator newProjectWizard = NewProjectWizardOperator.invoke();
        newProjectWizard.selectCategory("Scala");
        newProjectWizard.selectProject("Scala Application");
        newProjectWizard.next();
        newProjectWizard.finish();

        // TODO: Cause of the missing JUnit dependencies, a resolve references Dialog is opening.
        // IDEA: Change the default Project to have no dependency to JUnit
        new NbDialogOperator("Open Project").btClose();
View Full Code Here

Examples of org.nutz.repo.gif.AnimatedGifEncoder.finish()

            e.start(targetFile);
            for (String f : frameFiles) {
                e.setDelay(delay);
                e.addFrame(ImageIO.read(new File(f)));
            }
            return e.finish();
        }
        catch (Exception e) {
            return false;
        }
    }
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.