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

public Class JavaBeanField

extends Object
implements Field, JavaBeanAnnotatedConstrainable
Class Inheritance
All Implemented Interfaces
org.hibernate.validator.internal.properties.javabean.JavaBeanAnnotatedConstrainable, org.hibernate.validator.internal.properties.javabean.JavaBeanAnnotatedElement, org.hibernate.validator.internal.properties.Constrainable, org.hibernate.validator.internal.properties.Field, org.hibernate.validator.internal.properties.Property
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 Field
private final String
private final Type
private final Type

Constructor Summary

AccessConstructor and Description
public
JavaBeanField(Field field, String resolvedPropertyName)

Method Summary

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

Overrides java.lang.Object.equals.

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

Returns an accessible copy of the given member.

public AnnotatedType
public <A extends Annotation> A
public Annotation[]
public Class<?>
public Type
public String
public String
public String
public Type
public Type
public TypeVariable<?>[]
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for the object.
private static <T> T
run(PrivilegedAction<T> action)

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

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

fieldback to summary
private final Field field
resolvedPropertyNameback to summary
private final String resolvedPropertyName
typeback to summary
private final Type type
typeForValidatorResolutionback to summary
private final Type typeForValidatorResolution

Constructor Detail

JavaBeanFieldback to summary
public JavaBeanField(Field field, 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 java.lang.Object.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") Field getAccessible(Field original)

Returns an accessible copy of the given member.

Annotations
@IgnoreForbiddenApisErrors
reason:SecurityManager is deprecated in JDK17
getAnnotatedTypeback to summary
public AnnotatedType getAnnotatedType()

Implements org.hibernate.validator.internal.properties.javabean.JavaBeanAnnotatedElement.getAnnotatedType.

Annotations
@Override
getAnnotationback to summary
public <A extends Annotation> A getAnnotation(Class<A> annotationClass)

Implements org.hibernate.validator.internal.properties.javabean.JavaBeanAnnotatedElement.getAnnotation.

Annotations
@Override
getDeclaredAnnotationsback to summary
public Annotation[] getDeclaredAnnotations()

Implements org.hibernate.validator.internal.properties.javabean.JavaBeanAnnotatedElement.getDeclaredAnnotations.

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

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

Annotations
@Override
getGenericTypeback to summary
public Type getGenericType()

Implements org.hibernate.validator.internal.properties.javabean.JavaBeanAnnotatedElement.getGenericType.

Annotations
@Override
getNameback to summary
public String getName()

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

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
getTypeback to summary
public Type getType()

Implements org.hibernate.validator.internal.properties.Constrainable.getType, org.hibernate.validator.internal.properties.javabean.JavaBeanAnnotatedElement.getType.

Annotations
@Override
getTypeForValidatorResolutionback to summary
public Type getTypeForValidatorResolution()

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

Annotations
@Override
getTypeParametersback to summary
public TypeVariable<?>[] getTypeParameters()

Implements org.hibernate.validator.internal.properties.javabean.JavaBeanAnnotatedElement.getTypeParameters.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.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
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
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

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

private Class JavaBeanField.EnhancedBeanFieldAccessor

extends Object
implements PropertyAccessor
Class Inheritance
  • java.lang.Object
  • org.hibernate.validator.internal.properties.javabean.JavaBeanField.EnhancedBeanFieldAccessor
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

Method Summary

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

Field Detail

nameback to summary
private final String name

Constructor Detail

EnhancedBeanFieldAccessorback to summary
private EnhancedBeanFieldAccessor(final String name)

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 JavaBeanField.FieldAccessor

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

Field Summary

Modifier and TypeField and Description
private Field

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

accessibleFieldback to summary
private Field accessibleField

Constructor Detail

FieldAccessorback to summary
private FieldAccessor(Field field)

Method Detail

getValueFromback to summary
public Object getValueFrom(Object bean)

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

Annotations
@Override