Examples of validate()


Examples of org.mybatis.generator.api.Plugin.validate()

      List<GeneratedXmlFile> generatedXmlFiles, List<String> warnings) throws InterruptedException {

    pluginAggregator = new PluginAggregator();
    for (PluginConfiguration pluginConfiguration : pluginConfigurations) {
      Plugin plugin = ObjectFactory.createPlugin(this, pluginConfiguration);
      if (plugin.validate(warnings)) {
        pluginAggregator.addPlugin(plugin);
      } else {
        warnings.add(getString("Warning.24", //$NON-NLS-1$
            pluginConfiguration.getConfigurationType(), id));
      }
View Full Code Here

Examples of org.naturalcli.ParameterValidator.validate()

  @Test
  public final void testValidate() {
    ParameterValidator pv = new ParameterValidator();
    try {
      // Right
      Assert.assertNull(pv.validate("test@test.afdf", "email"));
      Assert.assertNull(pv.validate("hello", "identifier"));
      Assert.assertNull(pv.validate("1234", "integer"));
      Assert.assertNull(pv.validate("asdadsa", "string"));
      // Bad
      Assert.assertNotNull(pv.validate("", "email"));
View Full Code Here

Examples of org.netbeans.api.visual.widget.Scene.validate()

            }
            scene.setZoomFactor(zoom);
        }

        if (scrollPane != null) {
            scene.validate(); // Call validate to update size of scene
            Dimension size = scrollPane.getViewport().getExtentSize();
            viewPosition.x -= xOffset;
            viewPosition.y -= yOffset;
            scene.resolveBounds(scene.getLocation(), bounds);
            scene.getView().setPreferredSize(componentSize);
View Full Code Here

Examples of org.netbeans.modules.php.nette.validators.NetteClassNameValidator.validate()

  private void doEnablement() {
    Validable classNameValidator = new NetteClassNameValidator();
    Validable componentNameValidator = new NetteComponentNameValidator();

    if (isFormTabSelected()) {
      if (!classNameValidator.validate(getFormClass())) {
        errorLabel.setIcon(errorIcon);
        setWarningText(NbBundle.getMessage(CreateComponentGeneratorPanel.class, "ERR_head_form_class"));
       
        dd.setValid(false);
      } else if (!componentNameValidator.validate(getFormName())) {
View Full Code Here

Examples of org.netbeans.modules.php.nette.validators.NetteComponentNameValidator.validate()

      if (!classNameValidator.validate(getFormClass())) {
        errorLabel.setIcon(errorIcon);
        setWarningText(NbBundle.getMessage(CreateComponentGeneratorPanel.class, "ERR_head_form_class"));
       
        dd.setValid(false);
      } else if (!componentNameValidator.validate(getFormName())) {
        errorLabel.setIcon(errorIcon);
        setWarningText(NbBundle.getMessage(CreateComponentGeneratorPanel.class, "ERR_head_form_name"));

        dd.setValid(false);
      } else {
View Full Code Here

Examples of org.netbeans.modules.php.nette.validators.NetteEmptyPathValidator.validate()

  public String getErrorMessage() {
    if (copyNetteCheckbox.isSelected()) {
      Validable emptyPathValidator = new NetteEmptyPathValidator();

      if (emptyPathValidator.validate(NetteOptions.getInstance().getNetteFile())) {
        return NbBundle.getMessage(NewNetteProjectPanel.class, "ERR_no_nette_file");
      }

      Validable loaderPathValidator = new NetteLoaderExistsValidator();
View Full Code Here

Examples of org.netbeans.modules.php.nette.validators.NetteLoaderExistsValidator.validate()

        return NbBundle.getMessage(NewNetteProjectPanel.class, "ERR_no_nette_file");
      }

      Validable loaderPathValidator = new NetteLoaderExistsValidator();

      if (!loaderPathValidator.validate(NetteOptions.getInstance().getNetteFile())) {
        return NbBundle.getMessage(NewNetteProjectPanel.class, "ERR_nette_file_not_exists");
      }
    }

    return null;
View Full Code Here

Examples of org.netbeans.modules.php.nette.validators.SandboxPathValidator.validate()

    if (!isNetteFileValid()) {
      errorLabel.setIcon(errorIcon);
      errorLabel.setText(NbBundle.getMessage(NettePanel.class, "ERR_invalid_nette_file"));

      return false;
    } else if (!sandboxPathValidator.validate(sandboxPathTextField.getText())) {
      errorLabel.setIcon(errorIcon);
      errorLabel.setText(NbBundle.getMessage(NettePanel.class, "ERR_invalid_sandbox_folder"));

      return false;
    } else {
View Full Code Here

Examples of org.netbeans.modules.php.nette.validators.Validable.validate()

      if (!classNameValidator.validate(getFormClass())) {
        errorLabel.setIcon(errorIcon);
        setWarningText(NbBundle.getMessage(CreateComponentGeneratorPanel.class, "ERR_head_form_class"));
       
        dd.setValid(false);
      } else if (!componentNameValidator.validate(getFormName())) {
        errorLabel.setIcon(errorIcon);
        setWarningText(NbBundle.getMessage(CreateComponentGeneratorPanel.class, "ERR_head_form_name"));

        dd.setValid(false);
      } else {
View Full Code Here

Examples of org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType.validate()

        for ( int i = 0; i < relationshipPropElems.length; i++ )
        {
            XmlObject relationshipPropElem = relationshipPropElems[i];
            assertTrue( relationshipPropElem instanceof RelationshipType );
            RelationshipType relationship = (RelationshipType)relationshipPropElem;
            assertTrue( "muws-p2-xs:Relationship element is not valid", relationship.validate() );
            RelationshipParticipantType[] participantArray = relationship.getParticipantArray();
            for (int j = 0; j < participantArray.length; j++)
            {
                RelationshipParticipantType relationshipParticipantType = participantArray[j];
                EndpointReferenceType[] manageabilityEndpointReferenceArray = relationshipParticipantType.getManageabilityEndpointReferenceArray();
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.