Examples of BaseValidator


Examples of br.com.caelum.stella.validation.BaseValidator

    public static final Pattern FORMATED = Pattern.compile("(\\d{13})[-](\\d{1})");

    public static final Pattern UNFORMATED = Pattern.compile("(\\d{13})(\\d{1})");

    public IERondoniaCasoDoisValidator(MessageProducer messageProducer, boolean isFormatted) {
        this.baseValidator = new BaseValidator(messageProducer);
        this.isFormatted = isFormatted;
    }
View Full Code Here

Examples of br.com.caelum.stella.validation.BaseValidator

     *
     * @param isFormatted
     *            considerar cadeia formatada quando <code>true</code>
     */
    public IEDistritoFederalValidator(boolean isFormatted) {
        this.baseValidator = new BaseValidator();
        this.isFormatted = isFormatted;
    }
View Full Code Here

Examples of br.com.caelum.stella.validation.BaseValidator

        this.baseValidator = new BaseValidator();
        this.isFormatted = isFormatted;
    }

    public IEDistritoFederalValidator(MessageProducer messageProducer, boolean isFormatted) {
        this.baseValidator = new BaseValidator(messageProducer);
        this.isFormatted = isFormatted;
    }
View Full Code Here

Examples of org.codehaus.enunciate.contract.validation.BaseValidator

   * Sets up the default model.
   */
  protected void setupDefaultModel() throws EnunciateException {
    //set up the default root model.
    EnunciateConfiguration config = new EnunciateConfiguration(new ArrayList<DeploymentModule>());
    config.setValidator(new BaseValidator()); //skip the validation...
    Enunciate enunciate = new Enunciate(new String[0]);
    enunciate.setConfig(config);
    new EnunciateAnnotationProcessor(enunciate).process();
  }
View Full Code Here

Examples of org.codehaus.enunciate.contract.validation.BaseValidator

    wsdlConfig.setNamespace(RELATIONSHIP_NAMESPACE);
    wsdlConfig.setFile("relationship.wsdl");
    xmlModule.addWsdlConfig(wsdlConfig);

    EnunciateConfiguration config = new EnunciateConfiguration(Arrays.asList((DeploymentModule) xmlModule));
    config.setValidator(new BaseValidator());
    config.setDeploymentHost("www.thebestgenealogywebsite.com");
    config.setDeploymentContext("/genealogy");
    config.setDeploymentProtocol("https");
    config.putNamespace(CITE_NAMESPACE, "cite");
    config.putNamespace(DATA_NAMESPACE, "data");
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.profile.validator.BaseValidator

  }

  public BaseValidator getValidatorForArtifact(String artifactName)
          throws WSIException {
      if (validatorRegistry == null) {
          BaseValidator validators[] = WSITestToolsPlugin.getPlugin().
                  getBaseValidators();
          for (int i = 0; i < validators.length; i++)
              addToValidatatorRegistry(validators[i].getArtifactType(),
              validators[i]);
         
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.profile.validator.BaseValidator

   */
  public static final EntryType getEntryType(String typeName)
    throws RuntimeException
  {
    if (entryTypeMap == null) {
        BaseValidator validators[] = WSITestToolsPlugin.getPlugin()
                .getBaseValidators();
        for (int i = 0; i < validators.length; i++) {
            String entryTypes[] = validators[i].getEntryTypes();
            for (int j = 0; j < entryTypes.length; j++)
                registerEntryType(ArtifactType.getArtifactType(
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.profile.validator.BaseValidator

      ArrayList results = new ArrayList();
      for (int i = 0; i < extensions.length; i++) {
          /* Only one validator per extension point */
          IConfigurationElement validatorElement = extensions[i].
                  getConfigurationElements()[0];
          BaseValidator validator = null;
          try {
              validator = (BaseValidator) validatorElement.
                      createExecutableExtension(ATT_CLASS);
          } catch (Throwable e) {
              e.printStackTrace();
View Full Code Here

Examples of org.switchyard.validate.BaseValidator

    }

    @Test
    public void testGetName_default_without_generics() {
        // No generics...
        BaseValidator strv =
            new BaseValidator() {
                public ValidationResult validate(Object obj) {
                    if (obj != null) {
                        return validResult();
                    } else {
                        return invalidResult("obj == null");
                    }
                }
        };

        Assert.assertEquals("java:java.lang.Object", strv.getName().toString());
    }
View Full Code Here

Examples of org.switchyard.validate.BaseValidator

    @Test
    public void testGetName_specified_without_generics() {
        final QName name = new QName("string1");

        BaseValidator strv =
            new BaseValidator(name) {
                public ValidationResult validate(Object obj) {
                    if (obj != null) {
                        return validResult();
                    } else {
                        return invalidResult("obj == null");
                    }
                }
        };

        Assert.assertEquals(name, strv.getName());
    }
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.