Class JavaBeanField
- java.lang.Object
-
- org.hibernate.validator.internal.properties.javabean.JavaBeanField
-
- All Implemented Interfaces:
Constrainable,Field,JavaBeanAnnotatedConstrainable,JavaBeanAnnotatedElement,Property
public class JavaBeanField extends Object implements Field, JavaBeanAnnotatedConstrainable
- Author:
- Marko Bekhta
-
-
Constructor Summary
Constructors Constructor Description JavaBeanField(Field field, String resolvedPropertyName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyAccessorcreateAccessor()booleanequals(Object o)AnnotatedTypegetAnnotatedType()<A extends Annotation>
AgetAnnotation(Class<A> annotationClass)Annotation[]getDeclaredAnnotations()Class<?>getDeclaringClass()TypegetGenericType()StringgetName()StringgetPropertyName()StringgetResolvedPropertyName()TypegetType()TypegetTypeForValidatorResolution()TypeVariable<?>[]getTypeParameters()inthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.validator.internal.properties.Constrainable
as
-
Methods inherited from interface org.hibernate.validator.internal.properties.Field
getConstrainedElementKind
-
Methods inherited from interface org.hibernate.validator.internal.properties.javabean.JavaBeanAnnotatedElement
isAnnotationPresent
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceConstrainable
-
getDeclaringClass
public Class<?> getDeclaringClass()
- Specified by:
getDeclaringClassin interfaceConstrainable
-
getType
public Type getType()
- Specified by:
getTypein interfaceConstrainable- Specified by:
getTypein interfaceJavaBeanAnnotatedElement
-
getTypeForValidatorResolution
public Type getTypeForValidatorResolution()
- Specified by:
getTypeForValidatorResolutionin interfaceConstrainable
-
getPropertyName
public String getPropertyName()
- Specified by:
getPropertyNamein interfaceProperty
-
getResolvedPropertyName
public String getResolvedPropertyName()
- Specified by:
getResolvedPropertyNamein interfaceProperty
-
getAnnotatedType
public AnnotatedType getAnnotatedType()
- Specified by:
getAnnotatedTypein interfaceJavaBeanAnnotatedElement
-
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfaceJavaBeanAnnotatedElement
-
getAnnotation
public <A extends Annotation> A getAnnotation(Class<A> annotationClass)
- Specified by:
getAnnotationin interfaceJavaBeanAnnotatedElement
-
getGenericType
public Type getGenericType()
- Specified by:
getGenericTypein interfaceJavaBeanAnnotatedElement
-
getTypeParameters
public TypeVariable<?>[] getTypeParameters()
- Specified by:
getTypeParametersin interfaceJavaBeanAnnotatedElement
-
createAccessor
public PropertyAccessor createAccessor()
- Specified by:
createAccessorin interfaceProperty
-
-