Tabnine Logo
Log.getValidationAppliesToParameterMustNotBeDefinedForNonGenericAndCrossParameterConstraintException
Code IndexAdd Tabnine to your IDE (free)

How to use
getValidationAppliesToParameterMustNotBeDefinedForNonGenericAndCrossParameterConstraintException
method
in
org.hibernate.validator.internal.util.logging.Log

Best Java code snippets using org.hibernate.validator.internal.util.logging.Log.getValidationAppliesToParameterMustNotBeDefinedForNonGenericAndCrossParameterConstraintException (Showing top 2 results out of 315)

origin: org.hibernate.validator/hibernate-validator

private void assertValidationAppliesToParameterSetUpCorrectly(Class<? extends Annotation> annotationType) {
  boolean hasGenericValidators = !findValidatorDescriptors(
      annotationType,
      ValidationTarget.ANNOTATED_ELEMENT
  ).isEmpty();
  boolean hasCrossParameterValidator = !findValidatorDescriptors(
      annotationType,
      ValidationTarget.PARAMETERS
  ).isEmpty();
  final Method method = run( GetMethod.action( annotationType, VALIDATION_APPLIES_TO ) );
  if ( hasGenericValidators && hasCrossParameterValidator ) {
    if ( method == null ) {
      throw LOG.getGenericAndCrossParameterConstraintDoesNotDefineValidationAppliesToParameterException(
          annotationType
      );
    }
    if ( method.getReturnType() != ConstraintTarget.class ) {
      throw LOG.getValidationAppliesToParameterMustHaveReturnTypeConstraintTargetException( annotationType );
    }
    ConstraintTarget defaultValue = (ConstraintTarget) method.getDefaultValue();
    if ( defaultValue != ConstraintTarget.IMPLICIT ) {
      throw LOG.getValidationAppliesToParameterMustHaveDefaultValueImplicitException( annotationType );
    }
  }
  else if ( method != null ) {
    throw LOG.getValidationAppliesToParameterMustNotBeDefinedForNonGenericAndCrossParameterConstraintException(
        annotationType
    );
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.hibernate-validator

private void assertValidationAppliesToParameterSetUpCorrectly(Class<? extends Annotation> annotationType) {
  boolean hasGenericValidators = !findValidatorClasses(
      annotationType,
      ValidationTarget.ANNOTATED_ELEMENT
  ).isEmpty();
  boolean hasCrossParameterValidator = !findValidatorClasses(
      annotationType,
      ValidationTarget.PARAMETERS
  ).isEmpty();
  final Method method = run( GetMethod.action( annotationType, VALIDATION_APPLIES_TO ) );
  if ( hasGenericValidators && hasCrossParameterValidator ) {
    if ( method == null ) {
      throw log.getGenericAndCrossParameterConstraintDoesNotDefineValidationAppliesToParameterException(
          annotationType
      );
    }
    if ( method.getReturnType() != ConstraintTarget.class ) {
      throw log.getValidationAppliesToParameterMustHaveReturnTypeConstraintTargetException( annotationType );
    }
    ConstraintTarget defaultValue = (ConstraintTarget) method.getDefaultValue();
    if ( defaultValue != ConstraintTarget.IMPLICIT ) {
      throw log.getValidationAppliesToParameterMustHaveDefaultValueImplicitException( annotationType );
    }
  }
  else if ( method != null ) {
    throw log.getValidationAppliesToParameterMustNotBeDefinedForNonGenericAndCrossParameterConstraintException(
        annotationType
    );
  }
}
org.hibernate.validator.internal.util.loggingLoggetValidationAppliesToParameterMustNotBeDefinedForNonGenericAndCrossParameterConstraintException

Popular methods of Log

  • getInvalidRegularExpressionException
  • getInvalidLengthForFractionPartException
  • getInvalidLengthForIntegerPartException
  • getLengthCannotBeNegativeException
  • getMaxCannotBeNegativeException
  • getMinCannotBeNegativeException
  • debug
  • debugf
  • errorInExpressionLanguage
  • evaluatingExpressionLanguageExpressionCausedException
  • getAnnotationDoesNotContainAParameterException
  • getAtLeastOneCustomMessageMustBeCreatedException
  • getAnnotationDoesNotContainAParameterException,
  • getAtLeastOneCustomMessageMustBeCreatedException,
  • getAtLeastOneGroupHasToBeSpecifiedException,
  • getAttemptToSpecifyAnArrayWhereSingleValueIsExpectedException,
  • getBeanClassHasAlreadyBeConfiguredViaProgrammaticApiException,
  • getBeanClassMustBePartOfRedefinedDefaultGroupSequenceException,
  • getBeanDoesNotContainConstructorException,
  • getBeanDoesNotContainMethodException,
  • getBeanDoesNotContainTheFieldException,
  • getBeanDoesNotContainThePropertyException

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • getSystemService (Context)
  • Menu (java.awt)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Kernel (java.awt.image)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • JOptionPane (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now