congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Log.getValidationAppliesToParameterMustHaveDefaultValueImplicitException
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.hibernate.validator.internal.util.logging.Log.getValidationAppliesToParameterMustHaveDefaultValueImplicitException (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.loggingLoggetValidationAppliesToParameterMustHaveDefaultValueImplicitException

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

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JList (javax.swing)
  • 21 Best Atom Packages for 2021
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