Examples of validate()


Examples of org.fenixedu.academic.dto.candidacy.PrecedentDegreeInformationBean.validate()

        final PrecedentDegreeInformationBean precedentDegreeBean = getRenderedObject("precedentDegreeInformation");
        request.setAttribute("precedentDegreeInformationBean", precedentDegreeBean);

        try {
            precedentDegreeBean.validate();
        } catch (DomainException e) {
            RenderUtils.invalidateViewState();
            addActionMessage(request, e.getKey());
            return mapping.findForward("fillNewPersonData");
        }
View Full Code Here

Examples of org.fireflow.model.WorkflowProcess.validate()

        workflowProcess = workflowDef.getWorkflowProcess();//解析fpdl

        if (workflowProcess == null ){
          throw new KernelException(null,null,"The WorkflowProcess property of WorkflowDefinition[processId="+workflowDef.getProcessId()+"] is null. ");
        }
        String validateMsg =  workflowProcess.validate();//校验工作流定义是否有效
        if (validateMsg != null){
          throw new KernelException(null,null,validateMsg);
        }
        NetInstance netInstance = new NetInstance(workflowProcess, kernelExtensions);
View Full Code Here

Examples of org.flexdock.dockbar.util.TextIcon.validate()

        addMouseListener(this);

        TextIcon icon = new TextIcon(this, 2, 1);
        setIcon(icon);
        updateIcon();
        icon.validate();
    }

    // stuff

    public Border getBorder() {
View Full Code Here

Examples of org.foray.render.awt.viewer.PreviewDialog.validate()

     * @throws OutputException For errors loading resources.
     */
    protected PreviewDialog createPreviewDialog(final AWTRenderer renderer, final Translator res)
            throws OutputException {
        final PreviewDialog frame = new PreviewDialog(renderer, res);
        frame.validate();
        frame.addWindowListener(new WindowAdapter() {
            public void windowClosed(final WindowEvent we) {
                /* Checkstyle-GenericIllegalRegexp-Off. */
                /* TODO: Is there a better way to do this. */
                System.exit(0);
View Full Code Here

Examples of org.freeplane.view.swing.map.MapView.validate()

    final StyleSheet styleSheet = document.getStyleSheet();
    styleSheet.addRule(ruleBuilder.toString());
    textfield.setText(text);
    final MapView mapView = (MapView) viewController.getMapViewComponent();
    if(! mapView.isValid())
      mapView.validate();
    final NodeStyleController nsc = NodeStyleController.getController(modeController);
    maxWidth = nsc.getMaxWidth(node);
    final Icon icon = parent.getIcon();
    if(icon != null){
      maxWidth -= icon.getIconWidth();
View Full Code Here

Examples of org.fusesource.ide.server.karaf.core.server.KarafServerDelegate.validate()

  }

  @Override
  public IStatus canStart(String launchMode) {
    KarafServerDelegate d = ((KarafServerDelegate)getServer().loadAdapter(KarafServerDelegate.class, null));
    return d == null ? Status.CANCEL_STATUS : d.validate();
  }

  @Override
  public void setupLaunchConfiguration(
      ILaunchConfigurationWorkingCopy workingCopy,
View Full Code Here

Examples of org.gatein.pc.portlet.impl.deployment.xml.XSD.validate()

      if (schemaValidation)
      {
         XSD xsd = version == 1 ? XSD.PORTLET_1_0 : XSD.PORTLET_2_0;
         try
         {
            xsd.validate(new StreamSource(new ByteArrayInputStream(bytes)));
         }
         catch (Exception e)
         {
            throw new DeploymentException("The portlet.xml file is not valid XML", e);
         }
View Full Code Here

Examples of org.gedcom4j.validate.CitationValidator.validate()

     * Test method for
     * {@link org.gedcom4j.validate.CitationValidator#validate()}.
     */
    public void testValidate() {
        CitationValidator cv = new CitationValidator(rootValidator, null);
        cv.validate();
        assertFindingsContain(Severity.ERROR, "citation", "null");
    }

}
View Full Code Here

Examples of org.gedcom4j.validate.GedcomValidator.validate()

     */
    public void write(OutputStream out, boolean littleEndianForUnicode) throws GedcomWriterException {
        if (!validationSuppressed) {
            GedcomValidator gv = new GedcomValidator(gedcom);
            gv.autorepair = autorepair;
            gv.validate();
            validationFindings = gv.findings;
            int numErrorFindings = 0;
            for (GedcomValidationFinding f : validationFindings) {
                if (f.severity == Severity.ERROR) {
                    numErrorFindings++;
View Full Code Here

Examples of org.geoserver.catalog.Catalog.validate()

                coverage.setNamespace(namespace);
            }

            ResourcePool resourcePool = catalog.getResourcePool();
            resourcePool.clear(info);
            catalog.validate(info, false).throwIfInvalid();
            catalog.save(info);

            for (CoverageInfo coverage : alreadyConfigured) {
                catalog.save(coverage);
            }
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.