congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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
  • findViewById (Activity)
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Runner (org.openjdk.jmh.runner)
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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