Examples of Validator


Examples of betsy.bpel.validation.Validator

        composite.setTestSuite(testSuite);
        composite.execute();
    }

    private void validate() {
        new Validator(processes).validate();
    }

Examples of br.com.caelum.vraptor.Validator

    userInfo = new UserInfo();
    userInfo.login(new User());

    result = new MockResult();
    Validator validator = new MockValidator();

    controller = new DvdsController(dao, userInfo, result, validator);
  }

Examples of br.com.caelum.vraptor.validator.Validator

        } catch (Exception e) {
          applicationError = e.getCause();
          response.setStatus(500);
        }
        Result vraptorResult = (Result) ((TargetInstanceProxy) result.get()).getTargetInstance();
        Validator vraptorValidator = (Validator) ((TargetInstanceProxy) validator.get()).getTargetInstance();
        vRaptorTestResult = new VRaptorTestResult(vraptorResult, response, request, vraptorValidator);
        vRaptorTestResult.setApplicationError(applicationError);
        return vRaptorTestResult;
      }

Examples of ca.uhn.hl7v2.conf.check.Validator

    }
   
    private ValidationException[] testAgainstProfile(Message message, String id) throws ProfileException, HL7Exception {
        HL7Exception[] exceptions;
        HapiContext context = message.getParser().getHapiContext();
        Validator validator = context.getConformanceValidator();
        try {
            ProfileStore profileStore = context.getProfileStore();
            String profileString = profileStore.getProfile(id);
            if (profileString != null) {
                RuntimeProfile profile = PARSER.parse(profileString);              
                exceptions = validator.validate(message, profile.getMessage());
            } else {
                throw new ProfileException("Unable to find the profile " + id);
            }
        } catch (IOException e) {
            throw new ProfileException("Error retreiving profile " + id, e);

Examples of com.addthis.codec.validation.Validator

            genArray = null;
        } else {
            genArray = new boolean[genTypes.length];
            mutateGenericTypes(genTypes, genArray);
        }
        Validator tryValidator = null;
        if ((fieldConfig != null) && (fieldConfig.validator() != Validator.class)) {
            try {
                tryValidator = fieldConfig.validator().newInstance();
            } catch (InstantiationException | IllegalAccessException e) {
                log.warn("error while trying to create validator ({}) for {}", fieldConfig.validator(), field, e);

Examples of com.alibaba.citrus.service.form.Validator

    @Test
    public void init_fieldConfig() throws Exception {
        V v = newValidatorFor_AbstractCompositeValidatorTests();
        FieldConfig fieldConfig = createMock(FieldConfig.class);
        Validator v1 = createMock(Validator.class);
        Validator v2 = createMock(Validator.class);
        Validator v3 = createMock(Validator.class);

        v1.init(fieldConfig);
        v2.init(fieldConfig);
        v3.init(fieldConfig);

        replay(fieldConfig, v1, v2, v3);

        v.setValidators(createValidatorList(v1, v2, v3));

Examples of com.alibaba.dubbo.validation.Validator

    }

    public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException {
        if (validation != null && ! invocation.getMethodName().startsWith("$")
                && ConfigUtils.isNotEmpty(invoker.getUrl().getMethodParameter(invocation.getMethodName(), Constants.VALIDATION_KEY))) {
            Validator validator = validation.getValidator(invoker.getUrl());
            if (validator != null) {
                try {
                validator.validate(invocation);
                } catch (RpcException e) {
                    throw e;
                } catch (Throwable t) {
                    throw new RpcException(t.getMessage(), t);
                }

Examples of com.caucho.config.types.Validator

     
      initCdiJsfContext();

      if (! _isCompileContext) {
        for (int i = 0; i < _resourceValidators.size(); i++) {
          Validator validator = _resourceValidators.get(i);

          validator.validate();
        }
      }
    } finally {
      _lifecycle.toInit();
    }

Examples of com.cognifide.slice.validation.api.Validator

  private ValidationResult validateObject(final Validatable validatable) {
    if (validatable == null) {
      return null;
    }

    final Validator validator = SliceTagUtils.getFromCurrentPath(pageContext, Validator.class, appName);
    final ValidationResult validationResult = validator.validate(validatable);
    return validationResult;
  }

Examples of com.dubture.composer.ui.wizard.project.template.Validator

    versionGroup = new SymfonyVersionGroup(this, composite);

    nameGroup.addObserver(PHPLocationGroup);

    nameGroup.notifyObservers();
    projectTemplateValidator = new Validator(this) {
      @Override
      protected void finishValidation() throws ValidationException {
        IPreferenceStore store = ComposerPlugin.getDefault().getPreferenceStore();
        PreferencesSupport prefSupport = new PreferencesSupport(ComposerPlugin.ID, store);
        String executable = prefSupport.getPreferencesValue(Keys.PHP_EXECUTABLE, null, null);
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.