Top Inners Fields Constructors Methods
org.hibernate.validator.internal.properties.javabean

public Class JavaBeanGetter

extends JavaBeanMethod
implements Getter
Class Inheritance
All Implemented Interfaces
org.hibernate.validator.internal.properties.Getter, org.hibernate.validator.internal.properties.Property, org.hibernate.validator.internal.properties.Constrainable
Static Imports
org.hibernate.validator.internal.util.TypeHelper.isHibernateValidatorEnhancedBean

Author
Marko Bekhta

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private final Class<?>
declaringClass

The class of the method for which the constraint was defined.

private final String
private final String

Constructor Summary

AccessConstructor and Description
public
JavaBeanGetter(Class<?> declaringClass, Method method, String propertyName, String resolvedPropertyName)

Method Summary

Modifier and TypeMethod and Description
public PropertyAccessor
public boolean
equals(Object
the reference object with which to compare.
o
)

Overrides org.hibernate.validator.internal.properties.javabean.JavaBeanExecutable.equals.

Indicates whether some other object is "equal to" this one.
private static @IgnoreForbiddenApisErrors(reason: "SecurityManager is deprecated in JDK17") Method
getAccessible(Method original)

Returns an accessible copy of the given method.

public ConstrainedElement.ConstrainedElementKind
public Class<?>
public String
public String
public String
public int
public boolean
public boolean
private static <T> T
run(PrivilegedAction<T> action)

Runs the given privileged action, using a privileged block if required.

Inherited from org.hibernate.validator.internal.properties.javabean.JavaBeanMethod:
getTypeParameters

Field Detail

declaringClassback to summary
private final Class<?> declaringClass

The class of the method for which the constraint was defined.

It is usually the same as the declaring class of the method itself, except in the XML case when a user could declare a constraint for a specific subclass.

propertyNameback to summary
private final String propertyName
resolvedPropertyNameback to summary
private final String resolvedPropertyName

Constructor Detail

JavaBeanGetterback to summary
public JavaBeanGetter(Class<?> declaringClass, Method method, String propertyName, String resolvedPropertyName)

Method Detail

createAccessorback to summary
public PropertyAccessor createAccessor()

Implements org.hibernate.validator.internal.properties.Property.createAccessor.

Annotations
@Override
equalsback to summary
public boolean equals(Object o)

Overrides org.hibernate.validator.internal.properties.javabean.JavaBeanExecutable.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
o:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
getAccessibleback to summary
private static @IgnoreForbiddenApisErrors(reason: "SecurityManager is deprecated in JDK17") Method getAccessible(Method original)

Returns an accessible copy of the given method.

Annotations
@IgnoreForbiddenApisErrors
reason:SecurityManager is deprecated in JDK17
getConstrainedElementKindback to summary
public ConstrainedElement.ConstrainedElementKind getConstrainedElementKind()

Overrides org.hibernate.validator.internal.properties.javabean.JavaBeanMethod.getConstrainedElementKind.

Overrides default org.hibernate.validator.internal.properties.Getter.getConstrainedElementKind.

Implements org.hibernate.validator.internal.properties.Constrainable.getConstrainedElementKind.

Annotations
@Override
getDeclaringClassback to summary
public Class<?> getDeclaringClass()

Overrides org.hibernate.validator.internal.properties.javabean.JavaBeanExecutable.getDeclaringClass.

Implements org.hibernate.validator.internal.properties.Constrainable.getDeclaringClass.

Annotations
@Override
getParameterNameback to summary
public String getParameterName(ExecutableParameterNameProvider parameterNameProvider, int parameterIndex)

Overrides org.hibernate.validator.internal.properties.javabean.JavaBeanExecutable.getParameterName.

Implements org.hibernate.validator.internal.properties.Callable.getParameterName.

Annotations
@Override
getPropertyNameback to summary
public String getPropertyName()

Implements org.hibernate.validator.internal.properties.Property.getPropertyName.

Annotations
@Override
getResolvedPropertyNameback to summary
public String getResolvedPropertyName()

Implements org.hibernate.validator.internal.properties.Property.getResolvedPropertyName.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides org.hibernate.validator.internal.properties.javabean.JavaBeanExecutable.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object.

Annotations
@Override
hasParametersback to summary
public boolean hasParameters()

Overrides org.hibernate.validator.internal.properties.javabean.JavaBeanExecutable.hasParameters.

Implements org.hibernate.validator.internal.properties.Callable.hasParameters.

Annotations
@Override
hasReturnValueback to summary
public boolean hasReturnValue()

Overrides org.hibernate.validator.internal.properties.javabean.JavaBeanExecutable.hasReturnValue.

Implements org.hibernate.validator.internal.properties.Callable.hasReturnValue.

Annotations
@Override
runback to summary
private static <T> T run(PrivilegedAction<T> action)

Runs the given privileged action, using a privileged block if required.

Note

This must never be changed into a publicly available method to avoid execution of arbitrary privileged actions within HV's protection domain.

Annotations
@IgnoreForbiddenApisErrors
reason:SecurityManager is deprecated in JDK17
org.hibernate.validator.internal.properties.javabean back to summary

private Class JavaBeanGetter.EnhancedBeanGetterAccessor

extends Object
implements PropertyAccessor
Class Inheritance
  • java.lang.Object
  • org.hibernate.validator.internal.properties.javabean.JavaBeanGetter.EnhancedBeanGetterAccessor
All Implemented Interfaces
org.hibernate.validator.internal.properties.PropertyAccessor

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
private
EnhancedBeanGetterAccessor(final String getterFullName)

Method Summary

Modifier and TypeMethod and Description
public Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

getterFullNameback to summary
private final String getterFullName

Constructor Detail

EnhancedBeanGetterAccessorback to summary
private EnhancedBeanGetterAccessor(final String getterFullName)

Method Detail

getValueFromback to summary
public Object getValueFrom(Object bean)

Implements org.hibernate.validator.internal.properties.PropertyAccessor.getValueFrom.

Annotations
@Override
org.hibernate.validator.internal.properties.javabean back to summary

private Class JavaBeanGetter.GetterAccessor

extends Object
implements PropertyAccessor
Class Inheritance
  • java.lang.Object
  • org.hibernate.validator.internal.properties.javabean.JavaBeanGetter.GetterAccessor
All Implemented Interfaces
org.hibernate.validator.internal.properties.PropertyAccessor

Field Summary

Modifier and TypeField and Description
private Method

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

accessibleGetterback to summary
private Method accessibleGetter

Constructor Detail

GetterAccessorback to summary
private GetterAccessor(Method getter)

Method Detail

getValueFromback to summary
public Object getValueFrom(Object bean)

Implements org.hibernate.validator.internal.properties.PropertyAccessor.getValueFrom.

Annotations
@Override