Examples of validate()


Examples of com.alibaba.antx.config.descriptor.ConfigValidator.validate()

                String value = evaluatePropertyValue(prop, false);

                for (Iterator k = prop.getValidators().iterator(); k.hasNext();) {
                    ConfigValidator validator = (ConfigValidator) k.next();

                    if (!validator.validate(value)) {
                        validatorIndex = j;
                        validatorProperty = prop;
                        validatorMessage = validator.getMessage();
                        return false;
                    }
View Full Code Here

Examples of com.alibaba.citrus.service.form.Validator.validate()

    /** 用子validator验证,并取得其错误信息。 */
    protected final boolean doValidate(Context context) {
        Validator validator = getValidator();
        Context newContext = newContext(context, validator);

        if (!validator.validate(newContext)) {
            context.setMessage(validator.getMessage(newContext));
            return false;
        }

        return true;
View Full Code Here

Examples of com.alibaba.dubbo.validation.Validator.validate()

        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);
                }
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.flow.interceptors.ExponentialRetryPolicy.validate()

                Arrays.asList(retryAnnotation.exceptionsToRetry())).withExceptionsToExclude(
                Arrays.asList(retryAnnotation.excludeExceptions())).withBackoffCoefficient(retryAnnotation.backoffCoefficient()).withMaximumRetryIntervalSeconds(
                retryAnnotation.maximumRetryIntervalSeconds()).withRetryExpirationIntervalSeconds(
                retryAnnotation.retryExpirationSeconds()).withMaximumAttempts(retryAnnotation.maximumAttempts());

        retryPolicy.validate();
        return retryPolicy;
    }
}
View Full Code Here

Examples of com.any_service_provider.gateways.pvs.PasswordValidationRule.validate()

        validPassword.setIdentifier(querySpec.getIdentifier());
        // Here's where the validation occurs
        for (int i=0;i<validationRules.size();i++) {
          logger.info("[PasswordValidationRequestCommand] Running rule "+i+"...");
          PasswordValidationRule rule=(PasswordValidationRule)validationRules.get(i);
          ValidationStatus status=rule.validate(querySpec);
          if (status!=null) {
            logger.info("[PasswordValidationRequestCommand] Candidate password "+candidate
                +" violates rule "+i+", "+rule.getClass().getName());
            validationStatuses.add(status);
          }
View Full Code Here

Examples of com.ardor3d.renderer.state.record.BlendStateRecord.validate()

                applySampleCoverage(false, state, record, caps);
            }
        }

        if (!record.isValid()) {
            record.validate();
        }
    }

    protected static void applyBlendEquations(final boolean enabled, final BlendState state,
            final BlendStateRecord record, final ContextCapabilities caps) {
View Full Code Here

Examples of com.ardor3d.renderer.state.record.ClipStateRecord.validate()

                enableClipPlane(i, false, state, record);
            }
        }

        if (!record.isValid()) {
            record.validate();
        }
    }

    private static void enableClipPlane(final int planeIndex, final boolean enable, final ClipState state,
            final ClipStateRecord record) {
View Full Code Here

Examples of com.ardor3d.renderer.state.record.ColorMaskStateRecord.validate()

            GL11.glColorMask(true, true, true, true);
            record.set(true, true, true, true);
        }

        if (!record.isValid()) {
            record.validate();
        }
    }
}
View Full Code Here

Examples of com.ardor3d.renderer.state.record.CullStateRecord.validate()

            setCullEnabled(false, record);
            setGLPolygonWind(PolygonWind.CounterClockWise, record);
        }

        if (!record.isValid()) {
            record.validate();
        }
    }

    private static void setCullEnabled(final boolean enable, final CullStateRecord record) {
        if (!record.isValid() || record.enabled != enable) {
View Full Code Here

Examples of com.ardor3d.renderer.state.record.FogStateRecord.validate()

        } else {
            enableFog(false, record);
        }

        if (!record.isValid()) {
            record.validate();
        }
    }

    private static void enableFog(final boolean enable, final FogStateRecord record) {
        if (record.isValid()) {
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.