congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Log.getNullIsAnInvalidTypeForAConstraintValidatorException
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.hibernate.validator/hibernate-validator

public static Type extractConstraintValidatorTypeArgumentType(Class<? extends ConstraintValidator<?, ?>> validator, int typeArgumentIndex) {
  Map<Type, Type> resolvedTypes = new HashMap<>();
  Type constraintValidatorType = resolveTypes( resolvedTypes, validator );
  //we now have all bind from a type to its resolution at one level
  Type type = ( (ParameterizedType) constraintValidatorType ).getActualTypeArguments()[typeArgumentIndex];
  if ( type == null ) {
    throw LOG.getNullIsAnInvalidTypeForAConstraintValidatorException();
  }
  else if ( type instanceof GenericArrayType ) {
    type = TypeHelper.getArrayType( TypeHelper.getComponentType( type ) );
  }
  while ( resolvedTypes.containsKey( type ) ) {
    type = resolvedTypes.get( type );
  }
  //FIXME raise an exception if validatorType is not a class
  return type;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.hibernate-validator

private static Type extractType(Class<? extends ConstraintValidator<?, ?>> validator) {
  Map<Type, Type> resolvedTypes = newHashMap();
  Type constraintValidatorType = resolveTypes( resolvedTypes, validator );
  //we now have all bind from a type to its resolution at one level
  Type validatorType = ( (ParameterizedType) constraintValidatorType ).getActualTypeArguments()[VALIDATOR_TYPE_INDEX];
  if ( validatorType == null ) {
    throw log.getNullIsAnInvalidTypeForAConstraintValidatorException();
  }
  else if ( validatorType instanceof GenericArrayType ) {
    validatorType = TypeHelper.getArrayType( TypeHelper.getComponentType( validatorType ) );
  }
  while ( resolvedTypes.containsKey( validatorType ) ) {
    validatorType = resolvedTypes.get( validatorType );
  }
  //FIXME raise an exception if validatorType is not a class
  return validatorType;
}
org.hibernate.validator.internal.util.loggingLoggetNullIsAnInvalidTypeForAConstraintValidatorException

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

  • Start an intent from android
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • CodeWhisperer 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