name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
hibernate-validator_ConstraintViolationAssert_assertPathEquals_rdh | /**
* Asserts that the path matches the expected path.
*
* @param path
* The path under test
* @param expectedPath
* The expected path
*/
public static void assertPathEquals(Path path, PathExpectation expectedPath) {
assertEquals(new PathExpectation(path), expectedPath, "Path does not match");
} | 3.26 |
hibernate-validator_ClassHierarchyHelper_getHierarchy_rdh | /**
* Retrieves all superclasses and interfaces recursively.
*
* @param clazz
* the class to start the search with
* @param classes
* list of classes to which to add all found super types matching
* the given filters
* @param filters
* filters applying for the search
*/
private static <T> void getHie... | 3.26 |
hibernate-validator_ConstraintMappingContextImplBase_addConstraint_rdh | /**
* Adds a constraint to the set of constraints managed by this creational context.
*
* @param constraint
* the constraint to add
*/
protected void addConstraint(ConfiguredConstraint<?> constraint) {
constraints.add(constraint);
} | 3.26 |
hibernate-validator_ClassVisitor_visitTypeAsClass_rdh | /**
* Doesn't perform any checks at the moment but calls a visit methods on its own elements.
*
* @param element
* a class element to check
* @param aVoid
*/
@Override
public Void visitTypeAsClass(TypeElement element, Void aVoid) {
visitAllMyElements(element);
return null;
} | 3.26 |
hibernate-validator_ClassVisitor_visitExecutableAsMethod_rdh | /**
* Checks whether the constraints of the given method are valid.
*
* @param element
* a method under investigation
* @param aVoid
*/
@Override
public Void visitExecutableAsMethod(ExecutableElement element, Void aVoid) {
processClassChecks(element);
return null;
} | 3.26 |
hibernate-validator_ClassVisitor_visitAllMyElements_rdh | /**
* Visits all inner elements of provided {@link TypeElement}.
*
* @param typeElement
* inner elements of which you want to visit
*/
private void visitAllMyElements(TypeElement typeElement) {
Name qualifiedName = typeElement.getQualifiedName();
if (!processedTypes.contains(qualifiedName)) {
pro... | 3.26 |
hibernate-validator_ClassVisitor_visitTypeAsInterface_rdh | /**
* Doesn't perform any checks at the moment but calls a visit methods on its own elements.
*
* @param element
* a class element to check
* @param aVoid
*/
@Override
public Void visitTypeAsInterface(TypeElement element, Void aVoid) {
visitAllMyElements(element);
return null;
} | 3.26 |
hibernate-validator_NotEmptyValidatorForCollection_isValid_rdh | /**
* Checks the collection is not {@code null} and not empty.
*
* @param collection
* the collection to validate
* @param constraintValidatorContext
* context in which the constraint is evaluated
* @return returns {@code true} if the collection is not {@code null} and the collection is not empty
*/
@Overri... | 3.26 |
hibernate-validator_AbstractCachingScriptEvaluatorFactory_getScriptEvaluatorByLanguageName_rdh | /**
* Retrieves a script executor for the given language.
*
* @param languageName
* the name of a scripting language
* @return a script executor for the given language. Never null.
* @throws ScriptEvaluatorNotFoundException
* in case no compatible evaluator for the given language has been found
*/
@Override... | 3.26 |
hibernate-validator_ModCheckBase_extractDigit_rdh | /**
* Returns the numeric {@code int} value of a {@code char}
*
* @param value
* the input {@code char} to be parsed
* @return the numeric {@code int} value represented by the character.
* @throws NumberFormatException
* in case character is not a digit
*/
protected int extractDigit(char value) throws Numbe... | 3.26 |
hibernate-validator_ModCheckBase_extractDigits_rdh | /**
* Parses the {@link String} value as a {@link List} of {@link Integer} objects
*
* @param value
* the input string to be parsed
* @return List of {@code Integer} objects.
* @throws NumberFormatException
* in case any of the characters is not a digit
*/
private List<Integer> extractDigits(final String va... | 3.26 |
hibernate-validator_ClassLoadingHelper_run_rdh | /**
* Runs the given privileged action, using a privileged block if required.
* <p>
* <b>NOTE:</b> This must never be changed into a publicly available method to avoid execution of arbitrary
* privileged actions within HV's protection domain.
*/
@IgnoreForbiddenApisErrors(reason = "SecurityManager is deprecated in... | 3.26 |
hibernate-validator_UUIDValidator_hasCorrectLetterCase_rdh | /**
* Validates the letter case of the given character depending on the letter case parameter
*
* @param ch
* The letter to be tested
* @return {@code true} if the character is in the specified letter case or letter case is not specified
*/
private boolean hasCorrectLetterCase(char ch) {
if (letterCase == n... | 3.26 |
hibernate-validator_UUIDValidator_extractVersion_rdh | /**
* Get the 4 bit UUID version from the current value
*
* @param version
* The old version (in case the version has already been extracted)
* @param index
* The index of the current value to find the version to extract
* @param value
* The numeric value at the character position
*/
private static int e... | 3.26 |
hibernate-validator_NotEmptyValidatorForArraysOfFloat_isValid_rdh | /**
* Checks the array is not {@code null} and not empty.
*
* @param array
* the array to validate
* @param constraintValidatorContext
* context in which the constraint is evaluated
* @return returns {@code true} if the array is not {@code null} and the array is not empty
*/
@Override
public boolean isValid... | 3.26 |
hibernate-validator_NotEmptyValidatorForArraysOfChar_isValid_rdh | /**
* Checks the array is not {@code null} and not empty.
*
* @param array
* the array to validate
* @param constraintValidatorContext
* context in which the constraint is evaluated
* @return returns {@code true} if the array is not {@code null} and the array is not empty
*/
@Override
public boolean isVal... | 3.26 |
hibernate-validator_Filters_excludeProxies_rdh | /**
* Returns a filter which excludes proxy objects.
*
* @return a filter which excludes proxy objects
*/
public static Filter excludeProxies() {
return PROXY_FILTER;
} | 3.26 |
hibernate-validator_Filters_excludeInterfaces_rdh | /**
* Returns a filter which excludes interfaces.
*
* @return a filter which excludes interfaces
*/
public static Filter excludeInterfaces() {
return INTERFACES_FILTER;
} | 3.26 |
hibernate-validator_ComposingConstraintTree_prepareFinalConstraintViolations_rdh | /**
* Before the final constraint violations can be reported back we need to check whether we have a composing
* constraint whose result should be reported as single violation.
*
* @param validationContext
* meta data about top level validation
* @param valueContext
* meta data for currently validated value
... | 3.26 |
hibernate-validator_ComposingConstraintTree_validateComposingConstraints_rdh | /**
* Validates all composing constraints recursively.
*
* @param validationContext
* Meta data about top level validation
* @param valueContext
* Meta data for currently validated value
* @param violatedConstraintValidatorContexts
* Used to accumulate constraint valida... | 3.26 |
hibernate-validator_PlatformResourceBundleLocator_determineAvailabilityOfResourceBundleControl_rdh | /**
* Check whether ResourceBundle.Control is available, which is needed for bundle aggregation. If not, we'll skip
* resource aggregation.
* <p>
* It is *not* available
* <ul>
* <li>in the Google App Engine environment</li>
* <li>when running HV as Java 9 named module (which would be the case when adding a modu... | 3.26 |
hibernate-validator_PlatformResourceBundleLocator_run_rdh | /**
* Runs the given privileged action, using a privileged block if required.
* <p>
* <b>NOTE:</b> This must never be changed into a publicly available method to avoid execution of arbitrary
* privileged actions within HV's protection domain.
*/
@IgnoreForbiddenApisErrors(reason = "SecurityManager is deprecated in... | 3.26 |
hibernate-validator_ScriptEngineScriptEvaluator_engineAllowsParallelAccessFromMultipleThreads_rdh | /**
* Checks whether the given engine is thread-safe or not.
*
* @return true if the given engine is thread-safe, false otherwise.
*/private boolean engineAllowsParallelAccessFromMultipleThreads() {
String threadingType = ((String) (engine.getFactory().getParameter("THREADING")));
return "THREAD-ISOLATED"... | 3.26 |
hibernate-validator_ScriptEngineScriptEvaluator_evaluate_rdh | /**
* Executes the given script, using the given variable bindings. The execution of the script happens either synchronized or
* unsynchronized, depending on the engine's threading abilities.
*
* @param script
* the script to be executed
* @param bindings
* the bindings to be used
* @return the script's res... | 3.26 |
hibernate-validator_ValidationProviderHelper_getValidatorBeanClass_rdh | /**
* Determines the class of the {@link Validator} corresponding to the given configuration object.
*/
Class<? extends
Validator> getValidatorBeanClass() {
return validatorClass;
} | 3.26 |
hibernate-validator_ValidationProviderHelper_isHibernateValidator_rdh | /**
* Whether the given provider is Hibernate Validator or not.
*/
public boolean isHibernateValidator() {
return isHibernateValidator;
} | 3.26 |
hibernate-validator_ValidationProviderHelper_getValidatorFactoryBeanClass_rdh | /**
* Determines the class of the {@link ValidatorFactory} corresponding to the given configuration object.
*/
Class<? extends ValidatorFactory>
getValidatorFactoryBeanClass() {
return validatorFactoryClass;
} | 3.26 |
hibernate-validator_ValidationProviderHelper_isDefaultProvider_rdh | /**
* Whether the given provider is the default provider or not.
*
* @return {@code true} if the given provider is the default provider, {@code false} otherwise
*/
public boolean isDefaultProvider() {
return isDefaultProvider;
} | 3.26 |
hibernate-validator_ValidationProviderHelper_determineRequiredQualifiers_rdh | /**
* Returns the qualifiers to be used for registering a validator or validator factory.
*/
@SuppressWarnings("serial")
private static Set<Annotation> determineRequiredQualifiers(boolean isDefaultProvider, boolean isHibernateValidator) {
HashSet<Annotation> qualifiers = newHashSet(3);
if (isDefaultProvider)... | 3.26 |
hibernate-validator_LuhnCheckValidator_isCheckDigitValid_rdh | /**
* Validate check digit using Luhn algorithm
*
* @param digits
* The digits over which to calculate the checksum
* @param checkDigit
* the check digit
* @return {@code true} if the luhn check result matches the check digit, {@code false} otherwise
*/
@Override
public boolean isCheckDigitValid(List<Intege... | 3.26 |
hibernate-validator_MetaDataBuilder_adaptOriginsAndImplicitGroups_rdh | /**
* Adapts the given constraints to the given bean type. In case a constraint
* is defined locally at the bean class the original constraint will be
* returned without any modifications. If a constraint is defined in the
* hierarchy (interface or super class) a new constraint will be returned
* with an origin of... | 3.26 |
hibernate-validator_MetaDataBuilder_add_rdh | /**
* Adds the given element to this builder. It must be checked with
* {@link #accepts(ConstrainedElement)} before, whether this is allowed or
* not.
*
* @param constrainedElement
* The element to add.
*/
public void add(ConstrainedElement constrainedElement) {
directConstraints.addAll(adaptConstraints(co... | 3.26 |
hibernate-validator_MetaDataBuilder_adaptConstraints_rdh | /**
* Allows specific sub-classes to customize the retrieved constraints.
*/
protected Set<MetaConstraint<?>> adaptConstraints(ConstrainedElement constrainedElement, Set<MetaConstraint<?>> constraints) {
return constraints;
}
/**
*
* @param rootClass
* The root class. That is the class for which we currentl... | 3.26 |
hibernate-validator_NotEmptyValidatorForMap_isValid_rdh | /**
* Checks the map is not {@code null} and not empty.
*
* @param map
* the map to validate
* @param constraintValidatorContext
* context in which the constraint is evaluated
* @return returns {@code true} if the map is not {@code null} and the map is not empty
*/
@Override
public boolean
isValid(Map map, ... | 3.26 |
hibernate-validator_ConstraintDescriptorImpl_getMatchingConstraintValidatorDescriptors_rdh | /**
* Return all constraint validator descriptors (either generic or cross-parameter) which are registered for the
* constraint of this descriptor.
*
* @return The constraint validator descriptors applying to type of this constraint.
*/
public List<ConstraintValidatorDescriptor<T>> getMatchingConstraintValidatorDe... | 3.26 |
hibernate-validator_ConstraintDescriptorImpl_determineConstraintType_rdh | /**
* Determines the type of this constraint. The following rules apply in
* descending order:
* <ul>
* <li>If {@code validationAppliesTo()} is set to either
* {@link ConstraintTarget#RETURN_VALUE} or
* {@link ConstraintTarget#PARAMETERS}, this value will be considered.</li>
* <li>Otherwise, if the constraint is... | 3.26 |
hibernate-validator_ConstraintDescriptorImpl_run_rdh | /**
* Runs the given privileged action, using a privileged block if required.
* <p>
* <b>NOTE:</b> This must never be changed into a publicly available method to avoid execution of arbitrary
* privileged actions within HV's protection domain.
*/
@IgnoreForbiddenApisErrors(reason = "SecurityManager is deprecated ... | 3.26 |
hibernate-validator_ConstraintDescriptorImpl_validateComposingConstraintTypes_rdh | /**
* Asserts that this constraint and all its composing constraints share the
* same constraint type (generic or cross-parameter).
*/
private void validateComposingConstraintTypes() {
for (ConstraintDescriptorImpl<?> composingConstraint : getComposingConstraintImpls()) {
if (composingConstraint.constraintType !... | 3.26 |
hibernate-validator_ConstraintDescriptorImpl_getCompositionType_rdh | /**
*
* @return the compositionType
*/
public CompositionType getCompositionType() {
return compositionType;
} | 3.26 |
hibernate-validator_ValueContexts_getLocalExecutionContextForExecutable_rdh | /**
* Creates a value context for validating an executable. Can be applied to both parameter and
* return value validation. Does not require a bean metadata information.
*/
public static <T, V> ValueContext<T, V> getLocalExecutionContextForExecutable(ExecutableParameterNameProvider parameterNameProvider, T value, Va... | 3.26 |
hibernate-validator_TypeVariableBindings_getTypeVariableBindings_rdh | /**
* Returns the bindings for all the type variables from the given type's hierarchy. The returned map will contain an
* entry for each type in the given type's class hierarchy (including interfaces). Each entry is a map from the
* given type's type variables to the corresponding type variables of the type represen... | 3.26 |
hibernate-validator_ValidatorFactoryConfigurationHelper_determinePropertyConfiguredConstraintMappingContributors_rdh | /**
* Returns a list with {@link ConstraintMappingContributor}s configured via the
* {@link HibernateValidatorConfiguration#CONSTRAINT_MAPPING_CONTRIBUTORS} property.
*
* Also takes into account the deprecated {@link HibernateValidatorConfiguration#CONSTRAINT_MAPPING_CONTRIBUTOR}
* property.
*
* @param propertie... | 3.26 |
hibernate-validator_ValidatorFactoryConfigurationHelper_run_rdh | /**
* Runs the given privileged action, using a privileged block if required.
* <p>
* <b>NOTE:</b> This must never be changed into a publicly available method to avoid execution of arbitrary
* privileged actions within HV's protection domain.
*/
@IgnoreForbiddenApisErrors(reason = "SecurityManager is deprecated in... | 3.26 |
hibernate-validator_UniqueElementsValidator_isValid_rdh | /**
*
* @param collection
* the collection to validate
* @param constraintValidatorContext
* context in which the constraint is evaluated
* @return true if the input collection is null or does not contain duplicate elements
*/
@Override
public boolean isValid(Collection collection, ConstraintValidatorConte... | 3.26 |
hibernate-validator_DefaultValidationOrder_assertDefaultGroupSequenceIsExpandable_rdh | /**
* Asserts that the default group sequence of the validated bean can be expanded into the sequences which needs to
* be validated.
*
* @param defaultGroupSequence
* the default group sequence of the bean currently validated
* @throws jakarta.validation.GroupDefinitionException
* in case {@code defaultGrou... | 3.26 |
hibernate-validator_AbstractStaxBuilder_readAttribute_rdh | /**
* Reads a value of an attribute of a given element.
*
* @param startElement
* an element to get an attribute from
* @param qName
* a {@link QName} of an attribute to read
* @return a value of an attribute if it is present, {@link Optional#empty()} otherwise
*/
pro... | 3.26 |
hibernate-validator_AbstractStaxBuilder_readSingleElement_rdh | /**
* Reads a value between a simple tag element. In case of a {@code <someTag>some-value</someTag>} will
* return {@code some-value} as a string.
*
* @param xmlEventReader
* a current {@link XMLEventReader}
* @return a value of a current xml tag as a string
*/
protected String readSingleElement(XMLEventReader... | 3.26 |
hibernate-validator_NotEmptyValidatorForCharSequence_isValid_rdh | /**
* Check that the character sequence is not null and its length is strictly superior to 0.
*
* @author Guillaume Smet
*/public class NotEmptyValidatorForCharSequence implements ConstraintValidator<NotEmpty, CharSequence> {
/**
* Checks the character sequence is not {@code null} and not empty.
*
* @param char... | 3.26 |
hibernate-validator_ConstraintCheckIssue_error_rdh | /**
* Creates a new ConstraintCheckIssue of error kind ({@link IssueKind#ERROR}).
*
* @param element
* The element at which the error occurred.
* @param annotationMirror
* The annotation that causes the error.
* @param messageKey
* A key for retrieving an error message template from the bundle
* <p>
*... | 3.26 |
hibernate-validator_ConstraintCheckIssue_isError_rdh | /**
* Determine if issue is an error
*
* @return true if {@link ConstraintCheckIssue#getKind()} equals to {@link IssueKind#ERROR}
*/
public boolean isError() {
return IssueKind.ERROR.equals(kind);
} | 3.26 |
hibernate-validator_ConstraintCheckIssue_warning_rdh | /**
* Creates a new ConstraintCheckIssue of warning kind ({@link IssueKind#WARNING}).
*
* @param element
* The element at which the error occurred.
* @param annotationMirror
* The annotation that causes the error.
* @param messageKey
* A key for retrieving an error message template from the bundle
* <p... | 3.26 |
hibernate-validator_ConstraintCheckIssue_isWarning_rdh | /**
* Determine if issue is a warning
*
* @return true if {@link ConstraintCheckIssue#getKind()} equals to {@link IssueKind#WARNING}
*/
public boolean isWarning() {
return IssueKind.WARNING.equals(kind);
} | 3.26 |
hibernate-validator_ValidationConfigStaxBuilder_build_rdh | /**
* Returns an enum set with the executable types corresponding to the given
* XML configuration, considering the special elements
* {@link ExecutableType#ALL} and {@link ExecutableType#NONE}.
*
* @return An enum set representing the given executable types.
*/
public EnumSet<ExecutableType> build() {
return exe... | 3.26 |
hibernate-validator_ConstraintValidatorContextImpl_dropLeafNodeIfRequired_rdh | /**
* In case nodes are added from within a class-level constraint, the node representing
* the constraint element will be dropped. inIterable(), getKey() etc.
*/
private void dropLeafNodeIfRequired() {
if (propertyPath.getLeafNode().getKind() == ElementKind.BEAN) {
propertyPath = PathImpl.createCopyWith... | 3.26 |
hibernate-validator_ConstraintValidatorContextImpl_addLeafNode_rdh | /**
* Adds the leaf node stored for deferred addition. Either a bean or
* property node.
*/
private void addLeafNode() {
switch (leafNodeKind) {
case BEAN :
propertyPath.addBeanNode();
break;
case PROPERTY :
propertyPath.addPropertyNode(leafNodeName);
break;
case CONTAINER... | 3.26 |
hibernate-validator_CascadableConstraintMappingContextImplBase_addGroupConversion_rdh | /**
* Adds a group conversion for this element.
*
* @param from
* the source group of the conversion
* @param to
* the target group of the conversion
*/
public void addGroupConversion(Class<?> from, Class<?> to) {
groupConversions.put(from, to);
} | 3.26 |
hibernate-validator_FutureOrPresentValidatorForCalendar_getInstant_rdh | /**
* Check that the {@code java.util.Calendar} passed to be validated is in
* the future.
*
* @author Alaa Nassef
* @author Guillaume Smet
*/
public class FutureOrPresentValidatorForCalendar extends AbstractFutureOrPresentInstantBasedValidator<Calendar> {@Overrideprotected Instant getInstant(Calendar value) {
... | 3.26 |
hibernate-validator_Sequence_addInheritedGroups_rdh | /**
* Recursively add inherited (groups defined on superclasses).
*
* @param group
* the group for which the inherited groups need to be added to {@code expandedGroups}
* @param expandedGroups
* The list into which to add all groups
*/
private void addInheritedGroups(Group group,
Set<Group> expandedGroups)
{... | 3.26 |
hibernate-validator_NotEmptyValidatorForArraysOfLong_isValid_rdh | /**
* Checks the array is not {@code null} and not empty.
*
* @param array
* the array to validate
* @param constraintValidatorContext
* context in which the constraint is evaluated
* @return returns {@code true} if the array is not {@code null} and the array is not empty
*/
@Override
public boolean isValid... | 3.26 |
hibernate-validator_ValueExtractorManager_run_rdh | /**
* Runs the given privileged action, using a privileged block if required.
* <p>
* <b>NOTE:</b> This must never be changed into a publicly available method to avoid execution of arbitrary
* privileged actions within HV's protection domain.
*/
@IgnoreForbiddenApisErrors(reason = "SecurityManager is deprecated in... | 3.26 |
hibernate-validator_AbstractMethodOverrideCheck_findAllOverriddenElements_rdh | /**
* Find overridden methods from all super classes and all implemented interfaces. Results are returned as a {@link MethodInheritanceTree}.
*
* @param overridingMethod
* the method for which we want to find the overridden methods
* @return a {@link MethodInheritanceTree} containing overridden methods
*/privat... | 3.26 |
hibernate-validator_AbstractMethodOverrideCheck_collectOverriddenMethodsInInterfaces_rdh | /**
* Collect overridden methods in the interfaces of a given type.
*
* @param overridingMethod
* the method for which we want to find the overridden methods
* @param currentTypeElement
* the class we are currently analyzing
* @param methodInheritanceTreeBuilder
* the method inheritance tree builder
*/
p... | 3.26 |
hibernate-validator_AbstractMethodOverrideCheck_isJavaLangObjectOrNull_rdh | /**
* Determine if the provided {@link TypeElement} represents a {@link java.lang.Object} or is {@code null}.
*
* @param typeElement
* the element to check
* @return {@code true} if the provided element is {@link java.lang.Object} or is {@code null}, {@code false} otherwise
*/
private boolean isJavaLangObjectOr... | 3.26 |
hibernate-validator_AbstractMethodOverrideCheck_getEnclosingTypeElementQualifiedName_rdh | /**
* Find a {@link String} representation of qualified name ({@link Name}) of corresponding {@link TypeElement} that
* contains a given {@link ExecutableElement}.
*
* @param currentMethod
* a method
* @return a class/interface qualified name represented by {@link String} to which a method belongs to
*/
protec... | 3.26 |
hibernate-validator_AbstractMethodOverrideCheck_getEnclosingTypeElement_rdh | /**
* Find the {@link TypeElement} that contains a given {@link ExecutableElement}.
*
* @param currentMethod
* a method
* @return the class/interface containing the method represented by a {@link TypeElement}
*/
private TypeElement getEnclosingTypeElement(ExecutableElement currentMethod) {
return ((TypeEle... | 3.26 |
hibernate-validator_AbstractMethodOverrideCheck_getOverriddenMethod_rdh | /**
* Find a method that is overridden by the one passed to this function.
*
* @param currentMethod
* the method for which we want to find the overridden methods
* @param typeElement
* the class or interface analyzed
* @return the overridden method if there is one, and {@code null} otherwise
*/
private Exec... | 3.26 |
hibernate-validator_AbstractMethodOverrideCheck_collectOverriddenMethods_rdh | /**
* Collect all the overridden elements of the inheritance tree.
*
* @param overridingMethod
* the method for which we want to find the overridden methods
* @param currentTypeElement
* the class we are analyzing
* @param methodInheritanceTreeBuilder
* the method inheritance tree builder
*/
private void... | 3.26 |
hibernate-validator_ValueContext_getCurrentValidatedValue_rdh | /**
* Returns the current value to be validated.
*/
public final Object getCurrentValidatedValue() {
return currentValue;
} | 3.26 |
hibernate-validator_ValueContext_setTypeParameter_rdh | /**
* Sets the container element information.
*
* @param containerClass
* the class of the container
* @param typeParameterIndex
* the index of the actual type parameter
* @see TypeVariables#getContainerClass(TypeVariable)
* @see TypeVariables#getActualTypeParameter(TypeVariable)
* @see AnnotatedObject
* ... | 3.26 |
hibernate-validator_BeanMetaDataImpl_bySignature_rdh | /**
* Builds up the method meta data for this type; each meta-data entry will be stored under the signature of the
* represented method and all the methods it overrides.
*/
private Map<Signature, ExecutableMetaData> bySignature(Set<ExecutableMetaData> executables) {
Map<Signature, ExecutableMetaData> v33 = new... | 3.26 |
hibernate-validator_TraversableResolvers_getDefault_rdh | /**
* Initializes and returns the default {@link TraversableResolver} depending on the environment.
* <p>
* If JPA 2 is present in the classpath, a {@link JPATraversableResolver} instance is returned.
* <p>
* Otherwise, it returns an instance ... | 3.26 |
hibernate-validator_TraversableResolvers_run_rdh | /**
* Runs the given privileged action, using a privileged block if required.
* <p>
* <b>NOTE:</b> This must never be changed into a publicly available method to avoid execution of arbitrary
* privileged actions within HV's protection domain.
*/
@IgnoreForbiddenApisErrors(reason = "SecurityManager is deprecated in... | 3.26 |
hibernate-validator_HibernateConstraintValidator_initialize_rdh | /**
* Initializes the validator in preparation for {@link #isValid(Object, ConstraintValidatorContext)} calls.
* It is an alternative to {@link #initialize(Annotation)} method. Should be used if any additional information
* except annotation is needed to initialize a validator.
* Note, when using {@link HibernateCo... | 3.26 |
hibernate-validator_GetDeclaredMethodHandle_m0_rdh | /**
* Before using this method on arbitrary classes, you need to check the {@code HibernateValidatorPermission.ACCESS_PRIVATE_MEMBERS}
* permission against the security manager, if the calling class exposes the handle to clients.
*/public static GetDeclaredMethodHandle m0(Lookup lookup, Class<?> clazz, String method... | 3.26 |
hibernate-validator_FutureOrPresentValidatorForHijrahDate_getReferenceValue_rdh | /**
* Check that the {@code java.time.chrono.HijrahDate} passed is in the future.
*
* @author Guillaume Smet
*/ public class FutureOrPresentValidatorForHijrahDate extends AbstractFutureOrPresentJavaTimeValidator<HijrahDate> {
@Override
protected HijrahDate getReferenceValue(Clock reference) {
return... | 3.26 |
hibernate-validator_ReflectionHelper_isIterable_rdh | /**
*
* @param type
* the type to check.
* @return Returns {@code true} if {@code type} is a iterable type, {@code false} otherwise.
*/
public static boolean isIterable(Type type) {
if ((type instanceof Class) && Iterable.class.isAssignableFrom(((Class<?>) (type)))) {
return true;
}
if (type ... | 3.26 |
hibernate-validator_ReflectionHelper_isList_rdh | /**
*
* @param type
* the type to check.
* @return Returns {@code true} if {@code type} is implementing {@code List}, {@code false} otherwise.
*/
public static boolean isList(Type type) {
if ((type instanceof Class) && List.class.isAssignableFrom(((Class<?>) (type)))) {
return true; }
if (type i... | 3.26 |
hibernate-validator_ReflectionHelper_typeOf_rdh | /**
*
* @param member
* The {@code Member} instance for which to retrieve the type.
* @return Returns the {@code Type} of the given {@code Field} or {@code Method}.
* @throws IllegalArgumentException
* in case {@code member} is not a {@code Field} or {@code Method}.
*/
public static Type typeOf(Member member... | 3.26 |
hibernate-validator_ReflectionHelper_isIndexable_rdh | /**
* Indicates if the type is considered indexable (ie is a {@code List}, an array or a {@code Map}).
* <p>
* Note that it does not include {@code Set}s as they are not indexable.
*
* @param type
* the type to inspect.
* @return Returns true if the type is indexable.
*/public static boolean isIndexable(Type ... | 3.26 |
hibernate-validator_ReflectionHelper_isMap_rdh | /**
*
* @param type
* the type to check.
* @return Returns {@code true} if {@code type} is implementing {@code Map}, {@code false} otherwise.
*/
public static boolean isMap(Type type) {
if ((type instanceof Class) && Map.class.isAssignableFrom(((Class<?>) (type)))) {
return true;
}
if (type i... | 3.26 |
hibernate-validator_ReflectionHelper_isCollection_rdh | /**
* Indicates whether the given type represents a collection of elements or not (i.e. whether it is an
* {@code Iterable}, {@code Map} or array type).
*/
public static boolean isCollection(Type type) {
return (isIterable(type) || isMap(type)) || TypeHelper.isArr... | 3.26 |
hibernate-validator_ReflectionHelper_boxedType_rdh | /**
* Returns the corresponding auto-boxed type if given a primitive type. Returns the given type itself otherwise.
*/
public static Class<?> boxedType(Class<?> type) {
if (type.isPrimitive())
{
return internalBoxedType(((Class<?>) (type)));
} else {
return type;
}
}
/**
* Returns th... | 3.26 |
hibernate-validator_ReflectionHelper_getMappedValue_rdh | /**
* Tries to retrieve the mapped value from the specified object.
*
* @param value
* The object from which to retrieve the mapped value. The object has to be non {@code null} and
* must implement the @{code Map} interface.
* @param key
* The map key. index.
* @return The mapped value or {@code null} if... | 3.26 |
hibernate-validator_ReflectionHelper_getCollectionElementType_rdh | /**
* Determines the type of the elements of an {@code Iterable}, array or the value of a {@code Map}.
*/
public static Type getCollectionElementType(Type type) {
Type indexedType = null;
if (isIterable(type) && (type instanceof ParameterizedType)) {
ParameterizedType paramType = ((ParameterizedTyp... | 3.26 |
hibernate-validator_ReflectionHelper_getClassFromType_rdh | /**
* Converts the given {@code Type} to a {@code Class}.
*
* @param type
* the type to convert
* @return the class corresponding to the type
*/
public static Class<?> getClassFromType(Type type) {
if (type instanceof Class) {
return ((Class<?>) (type));
... | 3.26 |
hibernate-validator_DefaultConstraintMapping_getBeanConfigurations_rdh | /**
* Returns all bean configurations configured through this constraint mapping.
*
* @param constraintCreationContext
* the constraint creation context
* @return a set of {@link BeanConfiguration}s with an element for each type configured through this mapping
*/
public Set<BeanConfiguration<?>> getBeanConfigur... | 3.26 |
hibernate-validator_ValidationXmlParser_run_rdh | /**
* Runs the given privileged action, using a privileged block if required.
* <p>
* <b>NOTE:</b> This must never be changed into a publicly available method to avoid execution of arbitrary
* privileged actions within HV's protection domain.
*/
@IgnoreForbiddenApisErrors(reason = "SecurityManager is deprecated in... | 3.26 |
hibernate-validator_ValidationXmlParser_parseValidationXml_rdh | /**
* Tries to check whether a <i>validation.xml</i> file exists and parses it.
*
* @return The parameters parsed out of <i>validation.xml</i> wrapped in an instance of {@code ConfigurationImpl.ValidationBootstrapParameters}.
*/
public final BootstrapConfiguration parseValidationXml() {
InputStream in = getVa... | 3.26 |
hibernate-validator_ConfiguredConstraint_run_rdh | /**
* Runs the given privileged action, using a privileged block if required.
* <b>NOTE:</b> This must never be changed into a publicly available method to avoid execution of arbitrary
* privileged actions within HV's protection domain.
*/
@IgnoreForbiddenApisErrors(reason = "SecurityManager is deprecated in JDK17"... | 3.26 |
hibernate-validator_GroupSequenceProviderCheck_retrieveGenericProviderType_rdh | /**
* Retrieves the default group sequence provider generic type defined by the given {@code TypeMirror}.
*
* @param typeMirror
* The {@code TypeMirror} instance.
* @return The generic type or {@code null} if the given type doesn't implement the {@link org.hibernate.validator.spi.group.De... | 3.26 |
hibernate-validator_GroupSequenceProviderCheck_hasPublicDefaultConstructor_rdh | /**
* Checks that the given {@code TypeElement} has a public
* default constructor.
*
* @param element
* The {@code TypeElement} to check.
* @return True if the given {@code TypeElement} has a public default constructor, false otherwise
*/
private boolean hasPublicDefaultConstructor(TypeElement element) {
retu... | 3.26 |
hibernate-validator_ValidationInterceptor_validateMethodInvocation_rdh | /**
* Validates the Bean Validation constraints specified at the parameters and/or return value of the intercepted method.
*
* @param ctx
* The context of the intercepted method invocation.
* @return The result of the method invocation.
* @throws Exception
* Any exception caused by the intercepted method inv... | 3.26 |
hibernate-validator_AbstractConstraintValidatorManagerImpl_resolveAssignableTypes_rdh | /**
* Tries to reduce all assignable classes down to a single class.
*
* @param assignableTypes
* The set of all classes which are assignable to the class of the value to be validated and
* which are handled by at least one of the validators for the specified constraint.
*/
private void resolveAssignableTypes... | 3.26 |
hibernate-validator_AbstractConstraintValidatorManagerImpl_findMatchingValidatorDescriptor_rdh | /**
* Runs the validator resolution algorithm.
*
* @param validatedValueType
* The type of the value to be validated (the type of the member/class the constraint was placed on).
* @return The class of a matching validator.
*/
private <A extends Annotation> ConstraintValidatorDesc... | 3.26 |
hibernate-validator_ConstrainedExecutable_getParameterMetaData_rdh | /**
* Constraint meta data for the specified parameter.
*
* @param parameterIndex
* The index in this executable's parameter array of the parameter of
* interest.
* @return Meta data for the specified parameter. Will never be {@code null}.
* @throws IllegalArgumentException
* In case this executable doesn... | 3.26 |
hibernate-validator_ConstrainedExecutable_merge_rdh | /**
* Creates a new constrained executable object by merging this and the given
* other executable. Both executables must have the same location, i.e.
* represent the same executable on the same type.
*
* @param other
* The executable to merge.
* @return A merged executable.
*/
public ConstrainedExecutable me... | 3.26 |
hibernate-validator_InheritedMethodsHelper_run_rdh | /**
* Runs the given privileged action, using a privileged block if required.
* <p>
* <b>NOTE:</b> This must never be changed into a publicly available method to avoid execution of arbitrary
* privileged actions within HV's protection domain.
*/
@IgnoreForbiddenApisErrors(reason = "SecurityManager is deprecated in... | 3.26 |
hibernate-validator_InheritedMethodsHelper_getAllMethods_rdh | /**
* Get a list of all methods which the given class declares, implements,
* overrides or inherits. Methods are added by adding first all methods of
* the class itself and its implemented interfaces, then the super class and
* its interfaces, etc.
*
* @param clazz
* the class for which to retrieve the methods... | 3.26 |
hibernate-validator_TypeConstraintMappingContextImpl_m1_rdh | /**
* Runs the given privileged action, using a privileged block if required.
* <p>
* <b>NOTE:</b> This must never be changed into a publicly available method to avoid execution of arbitrary
* privileged actions within HV's protection domain.
*/
@IgnoreForbiddenApisErrors(reason = "SecurityManager is deprecated in... | 3.26 |
zxing_GenericGFPoly_getCoefficient_rdh | /**
*
* @return coefficient of x^degree term in this polynomial
*/
int getCoefficient(int degree) {
return coefficients[(coefficients.length - 1) -
degree];
} | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.